wok annotate fsarchiver/receipt @ rev 24069

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 06 11:01:20 2021 +0000 (2021-07-06)
parents 0b02213fe0a1
children 4dc049247076
rev   line source
jozee@4951 1 # SliTaz package receipt.
jozee@4951 2
jozee@4951 3 PACKAGE="fsarchiver"
pascal@22096 4 VERSION="0.8.5"
jozee@4951 5 CATEGORY="utilities"
jozee@4952 6 MAINTAINER="jozee@slitaz.org"
pascal@15000 7 LICENSE="GPL2"
jozee@4951 8 SHORT_DESC="A safe and flexible file-system backup and deployment tool"
pascal@23834 9 WEB_SITE="https://www.fsarchiver.org/"
slaxemulator@10328 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@22096 11 WGET_URL="https://github.com/fdupoux/fsarchiver/releases/download/$VERSION/$TARBALL"
slaxemulator@10328 12 TAGS="compression filesystem archive backup"
slaxemulator@10328 13
pankso@12481 14 DEPENDS="bzip2 e2fsprogs lzo xz libgcrypt liblzma util-linux-blkid \
pascal@22096 15 libcomerr3 zlib lz4-lib zstd"
slaxemulator@10328 16 BUILD_DEPENDS="bzip2-dev e2fsprogs-dev libgcrypt-dev lzo-dev liblzma-dev \
pascal@22096 17 util-linux-blkid-dev attr-dev util-linux-uuid-dev zlib-dev pkg-config \
pascal@22096 18 lz4-dev zstd-dev"
jozee@4951 19
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 23 sed '/archive.*tar/!d;/fsarchiver-/!d;s|.*/fsarchiver-\(.*\).tar.*|\1|;q'
pascal@24055 24 }
pascal@24055 25
jozee@4951 26 # Rules to configure and make the package.
pascal@22096 27 compile_rules()
pascal@22096 28 {
slaxemulator@10328 29 ./configure --prefix=/usr $CONFIGURE_ARGS &&
slaxemulator@7727 30 make &&
slaxemulator@10328 31 make DESTDIR="$DESTDIR" install
jozee@4951 32 }
jozee@4951 33
jozee@4951 34 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4951 35 genpkg_rules()
jozee@4951 36 {
jozee@4951 37 mkdir -p $fs/usr
pascal@15000 38 cp -a $install/usr/sbin $fs/usr
jozee@4951 39
jozee@4951 40 }