wok-6.x view afpfs-ng/receipt @ rev 24340
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 31 11:41:46 2022 +0000 (2022-01-31) |
parents | 11b5e93cb5f2 |
children | b1356f30c0b8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="afpfs-ng"
4 VERSION="0.8.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="The free afpfs driver."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://alexthepuffin.googlepages.com/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="fuse libgcrypt readline gmp"
14 BUILD_DEPENDS="libgcrypt-dev readline-dev gmp-dev fuse-dev automake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/afpfs-ng/files/afpfs-ng/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/afpfs-ng/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 }