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://dns.lookup.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"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)