wok-next annotate patch/receipt @ rev 10110

Up: midori to 0.3.6.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 15:30:13 2011 +0000 (2011-05-20)
parents 02bbaa9d12ba
children 67722a44366c
rev   line source
pankso@26 1 # SliTaz package receipt.
pankso@26 2
pankso@26 3 PACKAGE="patch"
slaxemulator@5481 4 VERSION="2.6.1"
pankso@211 5 CATEGORY="utilities"
pankso@26 6 SHORT_DESC="Utilitie to patch file with diff file."
pankso@26 7 MAINTAINER="pankso@slitaz.org"
gokhlayeh@8207 8 DEPENDS="glibc-base"
gokhlayeh@8207 9 BUILD_DEPENDS="gcc"
pankso@26 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@26 11 WEB_SITE="http://www.gnu.org/software/patch/"
pankso@26 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@26 13
pankso@26 14 # Rules to configure and make the package.
pankso@26 15 compile_rules()
pankso@26 16 {
pankso@26 17 cd $src
slaxemulator@10090 18 ./configure $CONFIGURE_ARGS &&
slaxemulator@10090 19 make && make install
pankso@26 20 }
pankso@26 21
pankso@26 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@26 23 genpkg_rules()
pankso@26 24 {
pankso@26 25 mkdir -p $fs/usr/bin
gokhlayeh@8207 26 cp -a $_pkg/usr/bin/patch $fs/usr/bin
pankso@26 27 }
pankso@26 28
pankso@26 29 # Prevent erasing busybox...
pankso@26 30 pre_install()
pankso@26 31 {
pankso@26 32 local root
pankso@26 33 root=$1
pankso@26 34 rm -f $root/usr/bin/patch
pankso@26 35 }
pascal@303 36
pascal@303 37 post_remove()
pascal@303 38 {
pascal@303 39 ln -s /bin/busybox /usr/bin/patch
pascal@303 40 }