wok annotate afuse/receipt @ rev 24411
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 17:57:59 2022 +0000 (2022-02-09) |
parents | ca81ff4a83e8 |
children | 232c9b0ea779 |
rev | line source |
---|---|
pascal@21097 | 1 # SliTaz package receipt. |
pascal@21097 | 2 |
pascal@21097 | 3 PACKAGE="afuse" |
pascal@21097 | 4 VERSION="0.4.1" |
pascal@21097 | 5 CATEGORY="system-tools" |
pascal@21097 | 6 SHORT_DESC="An automounter implemented with FUSE" |
pascal@21097 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21097 | 8 LICENSE="GPL2" |
pascal@21097 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24308 | 10 WEB_SITE="https://github.com/pcarrier/afuse" |
pascal@21097 | 11 WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz" |
pascal@21097 | 12 |
pascal@21097 | 13 DEPENDS="fuse" |
pascal@21097 | 14 BUILD_DEPENDS="fuse-dev perl-getopt-long autoconf automake libtool " |
pascal@21097 | 15 |
pascal@24308 | 16 # What is the latest version available today? |
pascal@24308 | 17 current_version() |
pascal@24308 | 18 { |
pascal@24308 | 19 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@24308 | 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 21 } |
pascal@24308 | 22 |
pascal@21097 | 23 # Rules to configure and make the package. |
pascal@21097 | 24 compile_rules() |
pascal@21097 | 25 { |
pascal@21097 | 26 autoreconf --install --verbose |
pascal@21097 | 27 sed -i 's|v -V -qversion|v|' configure |
pascal@21097 | 28 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@21097 | 29 --mandir=/usr/share/man \ |
pascal@21097 | 30 $CONFIGURE_ARGS && |
pascal@21097 | 31 make && |
pascal@21097 | 32 make DESTDIR=$DESTDIR install |
pascal@21097 | 33 } |
pascal@21097 | 34 |
pascal@21097 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21097 | 36 genpkg_rules() |
pascal@21097 | 37 { |
pascal@21098 | 38 mkdir -p $fs/usr/ $install/usr/share/doc |
pascal@21098 | 39 cp -a $install/usr/bin $fs/usr/ |
pascal@21098 | 40 cp $src/README $src/AUTHORS $install/usr/share/doc |
pascal@21097 | 41 } |