wok-current annotate attr/receipt @ rev 6232

Up: mplayer, mplayer-skins, mplayer-codecs, mencoder to 1.0rc3.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Sep 12 11:36:00 2010 +0000 (2010-09-12)
parents d5c5a2410a9d
children 6010b60e81b4
rev   line source
rcx@3647 1 # SliTaz package receipt.
rcx@3647 2
rcx@3647 3 PACKAGE="attr"
rcx@6060 4 VERSION="2.4.44"
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@6060 10 TARBALL="${PACKAGE}-${VERSION}.src.tar.gz"
rcx@3647 11 WEB_SITE="http://savannah.nongnu.org/projects/attr/"
rcx@6060 12 WGET_URL="http://download.savannah.gnu.org/releases-noredirect/$PACKAGE/$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 cd $src
rcx@3647 18
rcx@3745 19 # Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446
rcx@3745 20
rcx@3647 21 # these sed lines replace the patch "attr.destdir.diff" from the Slackware source files
rcx@3647 22 sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in
rcx@3647 23 sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in
rcx@3647 24 sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in
rcx@3647 25 sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in
rcx@3647 26 sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in
rcx@3647 27 sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in
rcx@3647 28
rcx@3647 29 # force docdir conformance to Slack default
rcx@3744 30 sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in
rcx@3647 31 sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in
rcx@3744 32
rcx@3647 33 # Don't need to build man and doc
rcx@6060 34 # rm -r -f man
rcx@6060 35 # rm -r -f doc
rcx@3744 36
rcx@3747 37 # Configure is included in Makefile
rcx@3747 38 make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
rcx@3647 39 make DESTDIR=$src/_pkg install install-lib install-dev
rcx@3647 40 }
rcx@3647 41
rcx@3647 42 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3647 43 genpkg_rules()
rcx@3647 44 {
rcx@3747 45 mkdir -p $fs/lib
rcx@3747 46 cp -a $_pkg/lib/*.so* $fs/lib
rcx@3747 47
rcx@3753 48 # Symlinks are not created correctly; create manually
rcx@3647 49 mkdir -p $fs/usr/lib
rcx@3753 50 ln -s /lib/libattr.so $fs/usr/lib/libattr.so
rcx@3747 51
rcx@3647 52 cp -a $_pkg/usr/bin $fs/usr
rcx@3647 53 }