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