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