wok-6.x annotate diffutils/receipt @ rev 12277
ocsreports: Improve post_install
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Apr 15 14:25:46 2012 +0200 (2012-04-15) |
parents | b90843fa3804 |
children | eb8067417980 |
rev | line source |
---|---|
pascal@2083 | 1 # SliTaz package receipt. |
pascal@2083 | 2 |
pascal@2083 | 3 PACKAGE="diffutils" |
slaxemulator@11098 | 4 VERSION="3.2" |
pascal@2083 | 5 CATEGORY="development" |
pascal@2083 | 6 SHORT_DESC="Show differences between two files." |
pascal@2083 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2083 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2083 | 9 WEB_SITE="http://www.gnu.org/software/diffutils/" |
pascal@2083 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@2083 | 11 |
pascal@2083 | 12 # Rules to configure and make the package. |
pascal@2083 | 13 compile_rules() |
pascal@2083 | 14 { |
pascal@2083 | 15 cd $src |
pascal@2083 | 16 ./configure --prefix=/usr $CONFIGURE_ARGS && |
pascal@2083 | 17 make && |
slaxemulator@11098 | 18 make DESTDIR=$DESTDIR install |
pascal@2083 | 19 } |
pascal@2083 | 20 |
pascal@2083 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2083 | 22 genpkg_rules() |
pascal@2083 | 23 { |
pascal@2083 | 24 mkdir -p $fs/usr |
pascal@2083 | 25 cp -a $_pkg/usr/bin $fs/usr |
pascal@2083 | 26 } |
pascal@8875 | 27 |
pascal@8875 | 28 # Overlap busybox |
pascal@8875 | 29 pre_install() |
pascal@8875 | 30 { |
pascal@8875 | 31 rm -f $1/usr/bin/diff |
pascal@8875 | 32 rm -f $1/usr/bin/cmp |
pascal@8875 | 33 } |
pascal@8875 | 34 |
pascal@8875 | 35 post_remove() |
pascal@8875 | 36 { |
slaxemulator@11098 | 37 ln -s /bin/busybox $1/usr/bin/diff |
slaxemulator@11098 | 38 ln -s /bin/busybox $1/usr/bin/cmp |
pascal@8875 | 39 } |