wok annotate patch/receipt @ rev 7674

Fixed linux. Need to make folder PWD/_pkg before adding bzImage to it. Also i'm force copying kernel config file now so we have the right config. It is copyed twice so its needed and doesn't hunt anything i think.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Dec 16 17:16:06 2010 +0000 (2010-12-16)
parents 44edb3ecc60c
children 86e8692df3d3
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"
pankso@26 8 DEPENDS=""
pankso@26 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@26 10 WEB_SITE="http://www.gnu.org/software/patch/"
pankso@26 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@26 12
pankso@26 13 # Rules to configure and make the package.
pankso@26 14 compile_rules()
pankso@26 15 {
pankso@26 16 cd $src
pankso@26 17 ./configure --prefix=/usr --infodir=/usr/share/info \
slaxemulator@5482 18 --mandir=/usr/share/man $CONFIGURE_ARGS &&
slaxemulator@5482 19 make &&
slaxemulator@5482 20 make prefix=$PWD/_pkg install
pankso@26 21 }
pankso@26 22
pankso@26 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@26 24 genpkg_rules()
pankso@26 25 {
pankso@26 26 mkdir -p $fs/usr/bin
slaxemulator@5482 27 cp -a $_pkg/bin/patch $fs/usr/bin
pankso@26 28 strip -s $fs/usr/bin/*
pankso@26 29 }
pankso@26 30
pankso@26 31 # Prevent erasing busybox...
pankso@26 32 pre_install()
pankso@26 33 {
pankso@26 34 local root
pankso@26 35 root=$1
pankso@26 36 rm -f $root/usr/bin/patch
pankso@26 37 }
pascal@303 38
pascal@303 39 post_remove()
pascal@303 40 {
pascal@303 41 ln -s /bin/busybox /usr/bin/patch
pascal@303 42 }