wok-current annotate dog/receipt @ rev 25489
Up foomatic-db (4.0-20221114)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 15 16:37:39 2022 +0000 (2022-11-15) |
parents | 9e3f3168b169 |
children |
rev | line source |
---|---|
pascal@23981 | 1 # SliTaz package receipt. |
pascal@23981 | 2 |
pascal@23981 | 3 PACKAGE="dog" |
pascal@23981 | 4 VERSION="0.1.0" |
pascal@23981 | 5 CATEGORY="network" |
pascal@23981 | 6 SHORT_DESC="A command-line DNS client" |
pascal@23981 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@23981 | 8 LICENSE="EUPL 1.2" |
pascal@23981 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@23981 | 10 WEB_SITE="https://dns.lookup.dog/" |
pascal@23981 | 11 WGET_URL="https://github.com/ogham/dog/archive/v$VERSION.tar.gz" |
pascal@23981 | 12 TAGS="dns" |
pascal@23981 | 13 |
pascal@23981 | 14 DEPENDS="libssl libcrypto" |
pascal@23982 | 15 BUILD_DEPENDS="rust-cargo git openssl-dev" |
pascal@23981 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@23981 | 23 # Rules to configure and make the package. |
pascal@23981 | 24 compile_rules() |
pascal@23981 | 25 { |
pascal@23981 | 26 cargo build --release |
pascal@23981 | 27 } |
pascal@23981 | 28 |
pascal@23981 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23981 | 30 genpkg_rules() |
pascal@23981 | 31 { |
pascal@23981 | 32 mkdir -p $fs/usr/bin |
pascal@23981 | 33 cp -a $src/target/release/dog $fs/usr/bin |
pascal@23981 | 34 } |