wok-6.x annotate findutils/receipt @ rev 19872
linld/tazboot: fix magic (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 30 18:01:42 2017 +0200 (2017-03-30) |
parents | 2b9f96603415 |
children | 59309d227b73 |
rev | line source |
---|---|
pankso@839 | 1 # SliTaz package receipt. |
pankso@839 | 2 |
pankso@839 | 3 PACKAGE="findutils" |
rcx@3666 | 4 VERSION="4.4.2" |
pankso@839 | 5 CATEGORY="utilities" |
rcx@3666 | 6 SHORT_DESC="GNU utilities and tools to find/locate." |
pankso@839 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pankso@839 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@839 | 10 WEB_SITE="http://www.gnu.org/software/findutils/" |
pankso@839 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@839 | 12 |
pascal@14999 | 13 DEPENDS="glibc-base slitaz-base-files" |
pascal@14999 | 14 |
pankso@839 | 15 # Rules to configure and make the package. |
pankso@839 | 16 compile_rules() |
pankso@839 | 17 { |
pankso@839 | 18 cd $src |
pankso@839 | 19 ./configure \ |
pankso@839 | 20 --prefix=/usr \ |
pankso@839 | 21 --libexecdir=/usr/lib/findutils \ |
pankso@839 | 22 --localstatedir=/var \ |
pankso@839 | 23 --infodir=/usr/share/info \ |
pankso@839 | 24 --mandir=/usr/share/man \ |
pankso@2741 | 25 $CONFIGURE_ARGS && |
pankso@2741 | 26 make && |
pascal@14999 | 27 make DESTDIR=$DESTDIR install |
pankso@839 | 28 } |
pankso@839 | 29 |
pankso@839 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@839 | 31 genpkg_rules() |
pankso@839 | 32 { |
pankso@839 | 33 mkdir -p $fs/usr/bin |
pascal@14999 | 34 cp -a $install/usr/bin $fs/usr |
pascal@14999 | 35 cp -a $install/usr/lib $fs/usr |
pankso@839 | 36 } |
pankso@839 | 37 |
rcx@3666 | 38 # Remove Busybox symlink before installing |
pankso@839 | 39 pre_install() |
pankso@839 | 40 { |
pascal@18730 | 41 rm -f "$1/usr/bin/find" |
pascal@18730 | 42 rm -f "$1/usr/bin/xargs" |
pankso@839 | 43 } |
pankso@839 | 44 |
pankso@839 | 45 post_remove() |
pankso@839 | 46 { |
pankso@839 | 47 ln -s /bin/busybox /usr/bin/find |
slaxemulator@6258 | 48 ln -s /bin/busybox /usr/bin/xargs |
pankso@839 | 49 } |