wok annotate attr/receipt @ rev 3740

add fox1.4
author Allan Pinto <allan316@gmail.com>
date Thu Jul 23 19:03:35 2009 +0000 (2009-07-23)
parents
children 9c0f256e44ac
rev   line source
rcx@3647 1 # SliTaz package receipt.
rcx@3647 2
rcx@3647 3 PACKAGE="attr"
rcx@3647 4 VERSION="2.4.43-1"
rcx@3647 5 CATEGORY="system-tools"
rcx@3647 6 SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes."
rcx@3647 7 MAINTAINER="rcx@zoominternet.net"
rcx@3647 8 DEPENDS="glibc-base"
rcx@3647 9 BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext"
rcx@3647 10 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
rcx@3647 11 WEB_SITE="http://savannah.nongnu.org/projects/attr/"
rcx@3647 12 WGET_URL="ftp://oss.sgi.com/projects/xfs/cmd_tars/$TARBALL"
rcx@3647 13
rcx@3647 14 # Rules to configure and make the package.
rcx@3647 15 compile_rules()
rcx@3647 16 {
rcx@3647 17 mv $PACKAGE-2.4.43 $PACKAGE-$VERSION
rcx@3647 18
rcx@3647 19 cd $src
rcx@3647 20
rcx@3647 21 # Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446
rcx@3647 22
rcx@3647 23 # Backup install script
rcx@3647 24 cp -f install-sh install-sh.orig
rcx@3647 25
rcx@3647 26 # these sed lines replace the patch "attr.destdir.diff" from the Slackware source files
rcx@3647 27 sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in
rcx@3647 28 sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in
rcx@3647 29 sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in
rcx@3647 30 sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in
rcx@3647 31 sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in
rcx@3647 32 sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in
rcx@3647 33
rcx@3647 34 # force docdir conformance to Slack default
rcx@3647 35 #sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in
rcx@3647 36 sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in
rcx@3647 37
rcx@3647 38 # Restore install script
rcx@3647 39 cp -f install-sh.orig install.sh
rcx@3647 40
rcx@3647 41 # Don't need to build man and doc
rcx@3647 42 rm -r -f man
rcx@3647 43 rm -r -f doc
rcx@3647 44
rcx@3647 45 make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
rcx@3647 46 make DESTDIR=$src/_pkg install install-lib install-dev
rcx@3647 47 }
rcx@3647 48
rcx@3647 49 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3647 50 genpkg_rules()
rcx@3647 51 {
rcx@3647 52 mkdir -p $fs/lib
rcx@3647 53 mkdir -p $fs/usr/lib
rcx@3647 54 cp -a $_pkg/lib/*.so* $fs/lib
rcx@3647 55 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
rcx@3647 56
rcx@3647 57 cp -a $_pkg/usr/bin $fs/usr
rcx@3647 58 }