wok view grep/receipt @ rev 11822
awesome: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 26 20:49:05 2012 +0100 (2012-02-26) |
parents | 88a31b077793 |
children | cc6ceae3a5e4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="grep"
4 VERSION="2.10"
5 CATEGORY="development"
6 SHORT_DESC="GNU Global Regular Expression Print."
7 MAINTAINER="paul@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.xz"
9 WEB_SITE="http://www.gnu.org/software/grep/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="pcre"
13 BUILD_DEPENDS="pcre-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure $CONFIGURE_ARGS &&
20 make && make install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr
27 cp -a $_pkg/usr/bin $fs/usr
28 }
30 # Pre and post install commands for Tazpkg.
31 # We must remove all Busybox symlink before installing.
32 #
33 pre_install()
34 {
35 local root
36 root=$1
37 echo "Processing pre-install commands..."
38 echo -n "Removing all Busybox replaced utils... "
39 rm -f $root/usr/bin/grep
40 status
41 }
43 post_remove()
44 {
45 ln -s /bin/busybox $1/usr/bin/grep
46 }