wok-6.x annotate acl/receipt @ rev 6049

tazbb: may refresh packages according to BUILD_DEPENDS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 17 13:16:06 2010 +0200 (2010-08-17)
parents 22fccd4d5400
children 67c05a14a3b1
rev   line source
rcx@3746 1 # SliTaz package receipt.
rcx@3746 2
rcx@3746 3 PACKAGE="acl"
rcx@3746 4 VERSION="2.2.47-1"
rcx@3746 5 CATEGORY="system-tools"
rcx@3746 6 SHORT_DESC="Commands for Manipulating POSIX Access Control Lists."
rcx@3746 7 MAINTAINER="rcx@zoominternet.net"
rcx@3746 8 DEPENDS="glibc-base attr"
rcx@3753 9 BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext attr-dev attr"
rcx@3746 10 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
rcx@3746 11 WEB_SITE="http://savannah.nongnu.org/projects/acl/"
rcx@3746 12 WGET_URL="ftp://oss.sgi.com/projects/xfs/cmd_tars/$TARBALL"
rcx@3746 13
rcx@3746 14 # Rules to configure and make the package.
rcx@3746 15 compile_rules()
rcx@3746 16 {
rcx@3746 17 mv $PACKAGE-2.2.47 $PACKAGE-$VERSION
rcx@3746 18
rcx@3746 19 cd $src
rcx@3746 20
rcx@3746 21 # Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446
rcx@3746 22
rcx@3746 23 # these sed lines replace the patch "attr.destdir.diff" from the Slackware source files
rcx@3746 24 sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in
rcx@3746 25 sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in
rcx@3746 26 sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in
rcx@3746 27 sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in
rcx@3746 28 sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in
rcx@3746 29 sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in
rcx@3746 30
rcx@3746 31 # force docdir conformance to Slack default
rcx@3746 32 sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in
rcx@3746 33 sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in
rcx@3746 34
rcx@3746 35 # Don't need to build man and doc
rcx@3746 36 rm -r -f man
rcx@3746 37 rm -r -f doc
rcx@3746 38
rcx@3747 39 # Configure is included in Makefile
rcx@3747 40 make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
rcx@3746 41 make DESTDIR=$src/_pkg install install-lib install-dev
rcx@3746 42 }
rcx@3746 43
rcx@3746 44 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3746 45 genpkg_rules()
rcx@3746 46 {
rcx@3747 47 mkdir -p $fs/lib
rcx@3747 48 cp -a $_pkg/lib/*.so* $fs/lib
rcx@3747 49
rcx@3753 50 # Symlinks are not created correctly; create manually
rcx@3746 51 mkdir -p $fs/usr/lib
rcx@3753 52 ln -s /lib/libacl.so $fs/usr/lib/libacl.so
rcx@3747 53
rcx@3746 54 cp -a $_pkg/usr/bin $fs/usr
rcx@3746 55 }