wok-stable rev 3647

Add: attr
author Matthew Sheets <rcx@zoominternet.net>
date Mon Jul 06 16:57:02 2009 +0000 (2009-07-06)
parents 62be5adc53af
children 088b89abdd5a
files attr-dev/receipt attr/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/attr-dev/receipt	Mon Jul 06 16:57:02 2009 +0000
     1.3 @@ -0,0 +1,21 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="attr-dev"
     1.7 +VERSION="2.4.43-1"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Development files for attr."
    1.10 +MAINTAINER="rcx@zoominternet.net"
    1.11 +DEPENDS=""
    1.12 +WEB_SITE="http://savannah.nongnu.org/projects/attr/"
    1.13 +WANTED="attr"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/lib
    1.19 +	mkdir -p $fs/usr/lib
    1.20 +	cp -a $_pkg/lib/*.*a $fs/lib
    1.21 +	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.22 +	
    1.23 +	cp -a $_pkg/usr/include $fs/usr
    1.24 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/attr/receipt	Mon Jul 06 16:57:02 2009 +0000
     2.3 @@ -0,0 +1,58 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="attr"
     2.7 +VERSION="2.4.43-1"
     2.8 +CATEGORY="system-tools"
     2.9 +SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes."
    2.10 +MAINTAINER="rcx@zoominternet.net"
    2.11 +DEPENDS="glibc-base"
    2.12 +BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext"
    2.13 +TARBALL="${PACKAGE}_${VERSION}.tar.gz"
    2.14 +WEB_SITE="http://savannah.nongnu.org/projects/attr/"
    2.15 +WGET_URL="ftp://oss.sgi.com/projects/xfs/cmd_tars/$TARBALL"
    2.16 +
    2.17 +# Rules to configure and make the package.
    2.18 +compile_rules()
    2.19 +{
    2.20 +	mv $PACKAGE-2.4.43 $PACKAGE-$VERSION
    2.21 +
    2.22 +	cd $src
    2.23 +	
    2.24 +	# Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446
    2.25 +	
    2.26 +	# Backup install script
    2.27 +	cp -f install-sh install-sh.orig
    2.28 +
    2.29 +	# these sed lines replace the patch "attr.destdir.diff" from the Slackware source files
    2.30 +	sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in
    2.31 +	sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in
    2.32 +	sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in
    2.33 +	sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in
    2.34 +	sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in
    2.35 +	sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in
    2.36 +	
    2.37 +	# force docdir conformance to Slack default
    2.38 +	#sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in
    2.39 +	sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in
    2.40 +	
    2.41 +	# Restore install script
    2.42 +	cp -f install-sh.orig install.sh
    2.43 +	
    2.44 +	# Don't need to build man and doc
    2.45 +	rm -r -f man
    2.46 +	rm -r -f doc
    2.47 +	
    2.48 +	make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
    2.49 +	make DESTDIR=$src/_pkg install install-lib install-dev
    2.50 +}
    2.51 +
    2.52 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.53 +genpkg_rules()
    2.54 +{
    2.55 +	mkdir -p $fs/lib
    2.56 +	mkdir -p $fs/usr/lib
    2.57 +	cp -a $_pkg/lib/*.so* $fs/lib
    2.58 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.59 +	
    2.60 +	cp -a $_pkg/usr/bin $fs/usr
    2.61 +}