wok annotate dog/receipt @ rev 25601
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 18:06:38 2023 +0000 (18 months ago) |
parents | 5ea0ce1cecc0 |
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@25598 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25598 | 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@23981 | 24 # Rules to configure and make the package. |
pascal@23981 | 25 compile_rules() |
pascal@23981 | 26 { |
pascal@23981 | 27 cargo build --release |
pascal@23981 | 28 } |
pascal@23981 | 29 |
pascal@23981 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@23981 | 31 genpkg_rules() |
pascal@23981 | 32 { |
pascal@23981 | 33 mkdir -p $fs/usr/bin |
pascal@23981 | 34 cp -a $src/target/release/dog $fs/usr/bin |
pascal@23981 | 35 } |