wok annotate attr/receipt @ rev 7893
attr: Need bash sh to compile
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Jan 09 13:53:34 2011 +0100 (2011-01-09) |
parents | 1de15bd4be74 |
children | f05cb4af3af0 |
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 |
gokhlayeh@7893 | 37 # Need bash sh to compile |
gokhlayeh@7893 | 38 mv /bin/sh /bin/sh.bak |
gokhlayeh@7893 | 39 ln -s /bin/bash /bin/sh |
gokhlayeh@7893 | 40 |
rcx@3747 | 41 # Configure is included in Makefile |
gokhlayeh@7893 | 42 { make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" && |
gokhlayeh@7893 | 43 make install install-lib install-dev |
gokhlayeh@7893 | 44 } || { mv -f /bin/sh.bak /bin/sh; return 1; } |
gokhlayeh@7893 | 45 |
gokhlayeh@7893 | 46 mv -f /bin/sh.bak /bin/sh |
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@3747 | 52 mkdir -p $fs/lib |
rcx@3747 | 53 cp -a $_pkg/lib/*.so* $fs/lib |
rcx@3747 | 54 |
rcx@3753 | 55 # Symlinks are not created correctly; create manually |
rcx@3647 | 56 mkdir -p $fs/usr/lib |
rcx@3753 | 57 ln -s /lib/libattr.so $fs/usr/lib/libattr.so |
rcx@3747 | 58 |
rcx@3647 | 59 cp -a $_pkg/usr/bin $fs/usr |
rcx@3647 | 60 } |