wok view acl/receipt @ rev 24066

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 05 15:00:07 2021 +0000 (2021-07-05)
parents a8b43c8ec993
children 68e1e2f938b4
line source
1 # SliTaz package receipt.
3 PACKAGE="acl"
4 VERSION="2.2.53"
5 CATEGORY="system-tools"
6 SHORT_DESC="Commands for Manipulating POSIX Access Control Lists."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="LGPL2.1 GPL2"
9 WEB_SITE="http://savannah.nongnu.org/projects/acl/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="attr"
15 BUILD_DEPENDS="attr-dev bash libtool"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="attr-dev" ;;
20 esac
22 current_version()
23 {
24 wget -O - http://download.savannah.nongnu.org/releases/acl/ 2>/dev/null | \
25 sed '/href="acl/!d;s|.*acl-\([0-9\.]*\)\..*|\1|' | sed '$!d'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Need bash as /bin/sh to compile
32 mv /bin/sh /bin/sh.bak
33 ln -s /bin/bash /bin/sh
35 {
36 INSTALL_USER=root \
37 INSTALL_GROUP=root \
38 ./configure \
39 --prefix=/usr \
40 --libdir=/lib \
41 --libexecdir=/usr/lib \
42 $CONFIGURE_ARGS &&
43 make &&
44 DIST_ROOT=$DESTDIR make install
45 } || {
46 mv -f /bin/sh.bak /bin/sh; return 1
47 }
49 mv -f /bin/sh.bak /bin/sh
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/lib $fs/usr/lib
56 cp -a $install/lib/*.so* $fs/lib
57 ln -s /lib/libacl.so $fs/usr/lib/libacl.so
58 cp -a $install/usr/bin $fs/usr
59 }