wok-stable view grep/receipt @ rev 10995
Up: atkmm to 2.22.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Oct 13 02:45:26 2011 +0000 (2011-10-13) |
parents | 64c3eda7d700 |
children | 88a31b077793 |
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 $CONFIGURE_ARGS &&
17 make && make install
18 }
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr
24 cp -a $_pkg/usr/bin $fs/usr
25 }
27 # Pre and post install commands for Tazpkg.
28 # We must remove all Busybox symlink before installing.
29 #
30 pre_install()
31 {
32 local root
33 root=$1
34 echo "Processing pre-install commands..."
35 echo -n "Removing all Busybox replaced utils... "
36 rm -f $root/usr/bin/grep
37 status
38 }
40 post_remove()
41 {
42 ln -s /bin/busybox $1/usr/bin/grep
43 }