wok annotate grep/receipt @ rev 11681
Up: grep to 2.10. It depends on pcre.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 18 08:15:31 2012 -0500 (2012-02-18) |
parents | 88a31b077793 |
children | cc6ceae3a5e4 |
rev | line source |
---|---|
paul@7100 | 1 # SliTaz package receipt. |
paul@7100 | 2 |
paul@7100 | 3 PACKAGE="grep" |
slaxemulator@11681 | 4 VERSION="2.10" |
paul@7100 | 5 CATEGORY="development" |
paul@7100 | 6 SHORT_DESC="GNU Global Regular Expression Print." |
paul@7100 | 7 MAINTAINER="paul@slitaz.org" |
slaxemulator@11681 | 8 TARBALL="$PACKAGE-$VERSION.tar.xz" |
paul@7100 | 9 WEB_SITE="http://www.gnu.org/software/grep/" |
paul@7100 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
paul@7100 | 11 |
slaxemulator@11681 | 12 DEPENDS="pcre" |
slaxemulator@11681 | 13 BUILD_DEPENDS="pcre-dev" |
slaxemulator@11681 | 14 |
paul@7100 | 15 # Rules to configure and make the package. |
paul@7100 | 16 compile_rules() |
paul@7100 | 17 { |
paul@7100 | 18 cd $src |
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 |
paul@7100 | 27 cp -a $_pkg/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 # |
slaxemulator@7187 | 33 pre_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... " |
slaxemulator@7187 | 39 rm -f $root/usr/bin/grep |
slaxemulator@7187 | 40 status |
slaxemulator@7187 | 41 } |
slaxemulator@7187 | 42 |
slaxemulator@7187 | 43 post_remove() |
slaxemulator@7187 | 44 { |
slaxemulator@9828 | 45 ln -s /bin/busybox $1/usr/bin/grep |
slaxemulator@7187 | 46 } |