wok annotate e2tools/receipt @ rev 24304
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 11:01:52 2022 +0000 (2022-01-17) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pascal@17324 | 1 # SliTaz package receipt. |
pascal@17324 | 2 |
pascal@17324 | 3 PACKAGE="e2tools" |
Hans-G?nter@20862 | 4 VERSION="0.0.16.4" |
pascal@17324 | 5 CATEGORY="base-system" |
Hans-G?nter@20862 | 6 SHORT_DESC="Read, write, and manipulate files in an ext2 or ext3 filesystem." |
pascal@17324 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17324 | 8 LICENSE="GPL2" |
Hans-G?nter@20862 | 9 WEB_SITE="https://github.com/ndim/$PACKAGE" |
Hans-G?nter@20862 | 10 |
pascal@17324 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17324 | 12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
pascal@17324 | 13 |
pascal@17324 | 14 DEPENDS="e2fsprogs" |
Hans-G?nter@20863 | 15 BUILD_DEPENDS="autoconf automake e2fsprogs-dev" |
pascal@17324 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24299 | 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@17324 | 23 # Rules to configure and make the package. |
pascal@17324 | 24 compile_rules() |
pascal@17324 | 25 { |
pascal@17670 | 26 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
Hans-G?nter@20862 | 27 autoreconf -vis . && |
pascal@17324 | 28 ./configure \ |
pascal@17324 | 29 --prefix=/usr \ |
Hans-G?nter@20862 | 30 $CONFIGURE_ARGS && |
Hans-G?nter@20862 | 31 make -j 1 && |
Hans-G?nter@20862 | 32 make DESTDIR=$DESTDIR install |
pascal@17324 | 33 } |
pascal@17324 | 34 |
pascal@17324 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17324 | 36 genpkg_rules() |
pascal@17324 | 37 { |
pascal@17324 | 38 cp -a $install/* $fs |
pascal@17324 | 39 } |