wok view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="e2tools"
4 VERSION="0.0.16.4"
5 CATEGORY="base-system"
6 SHORT_DESC="Read, write, and manipulate files in an ext2 or ext3 filesystem."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/ndim/$PACKAGE"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
14 DEPENDS="e2fsprogs"
15 BUILD_DEPENDS="autoconf automake e2fsprogs-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 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 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
27 autoreconf -vis . &&
28 ./configure \
29 --prefix=/usr \
30 $CONFIGURE_ARGS &&
31 make -j 1 &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 }