wok annotate fuse/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents ae73fb35f0cf
children 957a0d04295e
rev   line source
pankso@34 1 # SliTaz package receipt.
pankso@34 2
pankso@34 3 PACKAGE="fuse"
pascal@23838 4 VERSION="2.9.9"
pankso@202 5 CATEGORY="system-tools"
pankso@34 6 SHORT_DESC="Fuse Filsystem in user space."
pankso@34 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pankso@34 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@34 10 WEB_SITE="http://fuse.sourceforge.net/"
pascal@23838 11 WGET_URL="https://github.com/libfuse/libfuse/releases/download/fuse-$VERSION/$TARBALL"
jozee@4936 12 TAGS="filesystem"
pankso@16381 13 HOST_ARCH="i486 arm"
pankso@34 14
pascal@24055 15 current_version()
pascal@24055 16 {
pascal@24055 17 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 18 sed '/archive.*tar/!d;s|.*/fuse-\(.*\).tar.*|\1|;q'
pascal@24055 19 }
pascal@24055 20
pankso@34 21 # Rules to configure and make the package.
pankso@34 22 compile_rules()
pankso@34 23 {
pankso@16381 24 ./configure \
slaxemulator@13077 25 $CONFIGURE_ARGS &&
pankso@16381 26 make && make install
pankso@34 27 }
pankso@34 28
pankso@34 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@34 30 genpkg_rules()
pankso@34 31 {
pankso@34 32 mkdir -p $fs/usr/lib
pascal@15000 33 cp -a $install/dev $fs
pascal@15000 34 cp -a $install/sbin $fs
pascal@15000 35 cp -a $install/usr/bin $fs/usr
pascal@15000 36 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@34 37 }
pankso@34 38