wok view bindfs/receipt @ rev 24453

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents c365fe17a816
children 72f2704d3ae0
line source
1 # SliTaz package receipt.
3 PACKAGE="bindfs"
4 VERSION="1.15.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Mount a directory to another location and alter permission bits."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://bindfs.org/"
11 WGET_URL="https://github.com/mpartel/bindfs/archive/refs/tags/$VERSION.tar.gz"
13 DEPENDS="fuse"
14 BUILD_DEPENDS="fuse-dev autoconf automake libtool"
16 current_version()
17 {
18 wget -O - https://github.com/mpartel/bindfs/tags 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|-Wpedantic ||' configure.ac
26 ./autogen.sh
27 ./configure --prefix=/usr \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 }