wok annotate zbackup/receipt @ rev 24336
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 18:19:21 2022 +0000 (2022-01-28) |
parents | e8f42e9ff10b |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@20019 | 1 # SliTaz package receipt. |
pascal@20019 | 2 |
pascal@20019 | 3 PACKAGE="zbackup" |
pascal@20019 | 4 VERSION="1.4.4" |
pascal@20019 | 5 CATEGORY="network" |
pascal@20019 | 6 SHORT_DESC="A versatile deduplicating backup tool." |
pascal@20019 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20019 | 8 LICENSE="GPL2 GPL3" |
Hans-G?nter@21795 | 9 WEB_SITE="http://zbackup.org/" |
Hans-G?nter@21795 | 10 |
pascal@20019 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20019 | 12 WGET_URL="https://github.com/zbackup/zbackup/archive/$VERSION.tar.gz" |
pascal@20019 | 13 |
Hans-G?nter@21795 | 14 DEPENDS="gcc83-lib-base liblzma libssl protobuf zlib" |
Hans-G?nter@21795 | 15 BUILD_DEPENDS="cmake gcc83 liblzma-dev lzo-dev openssl-dev protobuf-dev zlib-dev" |
pascal@20019 | 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|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@20019 | 23 # Rules to configure and make the package. |
pascal@20019 | 24 compile_rules() |
pascal@20019 | 25 { |
Hans-G?nter@21795 | 26 export CC=gcc-83 |
Hans-G?nter@21795 | 27 export CXX=g++-83 |
pascal@20019 | 28 cmake -DCMAKE_INSTALL_PREFIX=/usr . && |
pascal@20019 | 29 make && |
pascal@20019 | 30 make DESTDIR=$DESTDIR install |
pascal@20019 | 31 } |
pascal@20019 | 32 |
pascal@20019 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20019 | 34 genpkg_rules() |
pascal@20019 | 35 { |
Hans-G?nter@21795 | 36 mkdir -p $fs/usr |
Hans-G?nter@21795 | 37 mkdir -p $install/usr/share/doc |
Hans-G?nter@21795 | 38 |
Hans-G?nter@21795 | 39 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21795 | 40 cp -a $src/README.md $install/usr/share/doc |
pascal@20019 | 41 } |