wok-6.x view obexfs/receipt @ rev 24403

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 18:20:23 2022 +0000 (2022-02-08)
parents 5ea0ce1cecc0
children 72f2704d3ae0
line source
1 # SliTaz package receipt.
3 PACKAGE="obexfs"
4 VERSION="0.12"
5 CATEGORY="system-tools"
6 SHORT_DESC="OBEX File System for FUSE."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/zuckschwerdt/obexfs"
11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
12 TAGS="bluetooth"
14 DEPENDS="fuse obexftp"
15 BUILD_DEPENDS="fuse-dev openobex-dev bluez-dev obexftp-dev automake autoconf"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 autoreconf -fi
27 automake --add-missing
28 ./configure --prefix=/usr \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr $install/usr/share/doc
38 cp -a $install/usr/bin $fs/usr
39 cp -a $src/README $install/usr/share/doc
40 }