# HG changeset patch # User Matthew Sheets # Date 1246899422 0 # Node ID 74dedc4cebdf4267eb832aa7bf0eefbf1f967669 # Parent 62be5adc53affa9258e44a9afc7bc5e2d690bc58 Add: attr diff -r 62be5adc53af -r 74dedc4cebdf attr-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/attr-dev/receipt Mon Jul 06 16:57:02 2009 +0000 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="attr-dev" +VERSION="2.4.43-1" +CATEGORY="development" +SHORT_DESC="Development files for attr." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="" +WEB_SITE="http://savannah.nongnu.org/projects/attr/" +WANTED="attr" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/lib + mkdir -p $fs/usr/lib + cp -a $_pkg/lib/*.*a $fs/lib + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib + + cp -a $_pkg/usr/include $fs/usr +} diff -r 62be5adc53af -r 74dedc4cebdf attr/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/attr/receipt Mon Jul 06 16:57:02 2009 +0000 @@ -0,0 +1,58 @@ +# SliTaz package receipt. + +PACKAGE="attr" +VERSION="2.4.43-1" +CATEGORY="system-tools" +SHORT_DESC="Commands for Manipulating Filesystem Extended Attributes." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="glibc-base" +BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext" +TARBALL="${PACKAGE}_${VERSION}.tar.gz" +WEB_SITE="http://savannah.nongnu.org/projects/attr/" +WGET_URL="ftp://oss.sgi.com/projects/xfs/cmd_tars/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + mv $PACKAGE-2.4.43 $PACKAGE-$VERSION + + cd $src + + # Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446 + + # Backup install script + cp -f install-sh install-sh.orig + + # these sed lines replace the patch "attr.destdir.diff" from the Slackware source files + sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in + sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in + sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in + sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in + sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in + sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in + + # force docdir conformance to Slack default + #sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in + sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in + + # Restore install script + cp -f install-sh.orig install.sh + + # Don't need to build man and doc + rm -r -f man + rm -r -f doc + + make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" && + make DESTDIR=$src/_pkg install install-lib install-dev +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/lib + mkdir -p $fs/usr/lib + cp -a $_pkg/lib/*.so* $fs/lib + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + + cp -a $_pkg/usr/bin $fs/usr +}