wok-6.x diff attr/receipt @ rev 8126
Back: emacs-pkg-po-mode
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Mon Jan 24 19:55:42 2011 +0100 (2011-01-24) |
parents | f05cb4af3af0 |
children | da6b40f47996 |
line diff
1.1 --- a/attr/receipt Sun Jan 09 12:03:10 2011 +0000 1.2 +++ b/attr/receipt Mon Jan 24 19:55:42 2011 +0100 1.3 @@ -16,31 +16,13 @@ 1.4 { 1.5 cd $src 1.6 1.7 - # Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446 1.8 - 1.9 - # these sed lines replace the patch "attr.destdir.diff" from the Slackware source files 1.10 - sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in 1.11 - sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in 1.12 - sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in 1.13 - sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in 1.14 - sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in 1.15 - sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in 1.16 - 1.17 - # force docdir conformance to Slack default 1.18 - sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in 1.19 - sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in 1.20 - 1.21 - # Don't need to build man and doc 1.22 - # rm -r -f man 1.23 - # rm -r -f doc 1.24 - 1.25 # Need bash sh to compile 1.26 mv /bin/sh /bin/sh.bak 1.27 ln -s /bin/bash /bin/sh 1.28 1.29 # Configure is included in Makefile 1.30 { make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" && 1.31 - make install install-lib install-dev DESTDIR=$PWD/_pkg 1.32 + make install install-lib install-dev DIST_ROOT=$PWD/_pkg 1.33 } || { mv -f /bin/sh.bak /bin/sh; return 1; } 1.34 1.35 mv -f /bin/sh.bak /bin/sh 1.36 @@ -49,12 +31,8 @@ 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 genpkg_rules() 1.39 { 1.40 - mkdir -p $fs/lib 1.41 + mkdir -p $fs/lib $fs/usr/lib 1.42 cp -a $_pkg/lib/*.so* $fs/lib 1.43 - 1.44 - # Symlinks are not created correctly; create manually 1.45 - mkdir -p $fs/usr/lib 1.46 - ln -s /lib/libattr.so $fs/usr/lib/libattr.so 1.47 - 1.48 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.49 cp -a $_pkg/usr/bin $fs/usr 1.50 }