wok-next annotate grep/receipt @ rev 18108

Add tcpoverudp & duat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 01 17:36:22 2015 +0200 (2015-06-01)
parents d553e7773a21
children 9e01bc6321ea
rev   line source
paul@7100 1 # SliTaz package receipt.
paul@7100 2
paul@7100 3 PACKAGE="grep"
slaxemulator@13083 4 VERSION="2.11"
paul@7100 5 CATEGORY="development"
paul@7100 6 SHORT_DESC="GNU Global Regular Expression Print."
paul@7100 7 MAINTAINER="paul@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
slaxemulator@11681 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
paul@7100 10 WEB_SITE="http://www.gnu.org/software/grep/"
paul@7100 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
paul@7100 12
slaxemulator@11681 13 DEPENDS="pcre"
slaxemulator@11681 14 BUILD_DEPENDS="pcre-dev"
slaxemulator@11681 15
paul@7100 16 # Rules to configure and make the package.
paul@7100 17 compile_rules()
paul@7100 18 {
slaxemulator@10089 19 ./configure $CONFIGURE_ARGS &&
slaxemulator@10089 20 make && make install
paul@7100 21 }
paul@7100 22
paul@7100 23 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@7100 24 genpkg_rules()
paul@7100 25 {
paul@7100 26 mkdir -p $fs/usr
pascal@14999 27 cp -a $install/usr/bin $fs/usr
paul@7100 28 }
paul@7100 29
slaxemulator@7187 30 # Pre and post install commands for Tazpkg.
slaxemulator@7187 31 # We must remove all Busybox symlink before installing.
slaxemulator@7187 32 #
pascal@17503 33 post_install()
slaxemulator@7187 34 {
slaxemulator@7187 35 local root
slaxemulator@7187 36 root=$1
slaxemulator@7187 37 echo "Processing pre-install commands..."
slaxemulator@7187 38 echo -n "Removing all Busybox replaced utils... "
pascal@17502 39 for i in grep egrep fgrep ; do
pascal@17503 40 bb=$root$(busybox grep bin/$i$ \
pascal@17503 41 $root/var/lib/tazpkg/installed/busybox*/files.list | sed q)
pascal@17503 42 readlink $bb 2> /dev/null | grep -q busybox || continue
pascal@17503 43 rm -f $bb
pascal@17503 44 ln -s /usr/bin/$i $bb
pascal@17502 45 done
slaxemulator@7187 46 status
slaxemulator@7187 47 }
slaxemulator@7187 48
slaxemulator@7187 49 post_remove()
slaxemulator@7187 50 {
pascal@17502 51 for i in grep egrep fgrep ; do
pascal@17503 52 bb=$root$(busybox grep bin/$i$ \
pascal@17503 53 $root/var/lib/tazpkg/installed/busybox*/files.list | sed q)
pascal@17503 54 rm -f $bb
pascal@17503 55 ln -s /bin/busybox $bb
pascal@17502 56 done
slaxemulator@7187 57 }
pascal@17503 58
pascal@17503 59 pre_remove()
pascal@17503 60 {
pascal@17503 61 post_remove
pascal@17503 62 }