wok annotate funionfs/receipt @ rev 25580

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 20 07:58:44 2023 +0000 (12 months ago)
parents 9c8ba5b98eb9
children
rev   line source
pascal@368 1 # SliTaz package receipt.
pascal@368 2
pascal@368 3 PACKAGE="funionfs"
pascal@368 4 VERSION="0.4.3"
pascal@368 5 CATEGORY="system-tools"
pascal@368 6 SHORT_DESC="Union filesystem implemented with FUSE."
pascal@368 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
pascal@368 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@23849 10 WEB_SITE="https://web.archive.org/web/20191120030918/http://funionfs.apiou.org/"
pascal@25031 11 WGET_URL="http://old-releases.ubuntu.com/ubuntu/pool/universe/f/funionfs/funionfs_$VERSION.orig.tar.gz"
jozee@4936 12 TAGS="filesystem"
pascal@368 13
pascal@24766 14 BUILD_DEPENDS="fuse2-dev"
pascal@24766 15 DEPENDS="fuse2"
pascal@15588 16
pascal@25580 17 # What is the latest version available today?
pascal@25580 18 current_version()
pascal@25580 19 {
pascal@25580 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@25580 21 sed '/orig/!d;s|.*funionfs_||;s|.orig.*||'
pascal@25580 22 }
pascal@25580 23
pascal@368 24 # Rules to configure and make the package.
pascal@368 25 compile_rules()
pascal@368 26 {
pascal@368 27 cd $src
pascal@1678 28 [ -f main.c.done ] || patch -p0 << EOT
pascal@1678 29 --- main.c
pascal@1678 30 +++ main.c
pascal@1678 31 @@ -305 +305 @@
pascal@1678 32 - if (res < 0)
pascal@1678 33 + // if (res < 0)
pascal@1678 34 EOT
pascal@1678 35 touch main.c.done
pascal@368 36 ./configure --prefix=/usr --bindir=/bin \
pascal@368 37 --libexecdir=/usr/bin --mandir=/usr/share/man \
pascal@1678 38 $CONFIGURE_ARGS &&
pascal@1678 39 make &&
pascal@15588 40 make DESTDIR=$DESTDIR install
pascal@368 41 }
pascal@368 42
pascal@368 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@368 44 genpkg_rules()
pascal@368 45 {
pascal@15588 46 cp -a $install/bin $fs
pascal@368 47 }