wok-6.x annotate attr/receipt @ rev 4313

java-j*: add link targets
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 28 18:46:51 2009 +0200 (2009-09-28)
parents 22fccd4d5400
children 1de15bd4be74
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@3745 21 # Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446
rcx@3745 22
rcx@3647 23 # these sed lines replace the patch "attr.destdir.diff" from the Slackware source files
rcx@3647 24 sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in
rcx@3647 25 sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in
rcx@3647 26 sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in
rcx@3647 27 sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in
rcx@3647 28 sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in
rcx@3647 29 sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in
rcx@3647 30
rcx@3647 31 # force docdir conformance to Slack default
rcx@3744 32 sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in
rcx@3647 33 sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in
rcx@3744 34
rcx@3647 35 # Don't need to build man and doc
rcx@3647 36 rm -r -f man
rcx@3647 37 rm -r -f doc
rcx@3744 38
rcx@3747 39 # Configure is included in Makefile
rcx@3747 40 make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
rcx@3647 41 make DESTDIR=$src/_pkg install install-lib install-dev
rcx@3647 42 }
rcx@3647 43
rcx@3647 44 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3647 45 genpkg_rules()
rcx@3647 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@3647 51 mkdir -p $fs/usr/lib
rcx@3753 52 ln -s /lib/libattr.so $fs/usr/lib/libattr.so
rcx@3747 53
rcx@3647 54 cp -a $_pkg/usr/bin $fs/usr
rcx@3647 55 }