wok view grep/receipt @ rev 7778
Up slitaz-boot-scripts (3.4.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 23 11:03:32 2010 +0100 (2010-12-23) |
parents | 2ea1249ebb14 |
children | 64c3eda7d700 |
line source
1 # SliTaz package receipt.
3 PACKAGE="grep"
4 VERSION="2.7"
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 \
17 --prefix=/usr \
18 --infodir=/usr/share/info \
19 --mandir=/usr/share/man \
20 $CONFIGURE_ARGS &&
21 make && make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $_pkg/usr/bin $fs/usr
29 }
31 # Pre and post install commands for Tazpkg.
32 # We must remove all Busybox symlink before installing.
33 #
34 pre_install()
35 {
36 local root
37 root=$1
38 echo "Processing pre-install commands..."
39 echo -n "Removing all Busybox replaced utils... "
40 rm -f $root/usr/bin/grep
41 status
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox /usr/bin/grep
47 }