wok annotate grep/receipt @ rev 9828

Up: grep to 2.8.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 15 12:01:44 2011 +0000 (2011-05-15)
parents 403cd0ae1572
children e81f99d5c01b
rev   line source
paul@7100 1 # SliTaz package receipt.
paul@7100 2
paul@7100 3 PACKAGE="grep"
slaxemulator@9828 4 VERSION="2.8"
paul@7100 5 CATEGORY="development"
paul@7100 6 SHORT_DESC="GNU Global Regular Expression Print."
paul@7100 7 MAINTAINER="paul@slitaz.org"
paul@7100 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@7100 9 WEB_SITE="http://www.gnu.org/software/grep/"
paul@7100 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
paul@7100 11
paul@7100 12 # Rules to configure and make the package.
paul@7100 13 compile_rules()
paul@7100 14 {
paul@7100 15 cd $src
slaxemulator@9828 16 ./configure && make && make install
paul@7100 17 }
paul@7100 18
paul@7100 19 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@7100 20 genpkg_rules()
paul@7100 21 {
paul@7100 22 mkdir -p $fs/usr
paul@7100 23 cp -a $_pkg/usr/bin $fs/usr
paul@7100 24 }
paul@7100 25
slaxemulator@7187 26 # Pre and post install commands for Tazpkg.
slaxemulator@7187 27 # We must remove all Busybox symlink before installing.
slaxemulator@7187 28 #
slaxemulator@7187 29 pre_install()
slaxemulator@7187 30 {
slaxemulator@7187 31 local root
slaxemulator@7187 32 root=$1
slaxemulator@7187 33 echo "Processing pre-install commands..."
slaxemulator@7187 34 echo -n "Removing all Busybox replaced utils... "
slaxemulator@7187 35 rm -f $root/usr/bin/grep
slaxemulator@7187 36 status
slaxemulator@7187 37 }
slaxemulator@7187 38
slaxemulator@7187 39 post_remove()
slaxemulator@7187 40 {
slaxemulator@9828 41 ln -s /bin/busybox $1/usr/bin/grep
slaxemulator@7187 42 }