SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dog"

# SliTaz package receipt.

PACKAGE="dog"
VERSION="0.1.0"
CATEGORY="network"
SHORT_DESC="A command-line DNS client"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="EUPL 1.2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/ogham/dog"
WGET_URL="https://github.com/ogham/dog/archive/v$VERSION.tar.gz"
TAGS="dns"

DEPENDS="libssl libcrypto"
BUILD_DEPENDS="rust-cargo git openssl-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cargo build --release
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $src/target/release/dog $fs/usr/bin
}
6011 packages and 861676 files in cooking database (Sun Jun 15 00:48:28 2025)