wok view grep/receipt @ rev 13673

get-skype: new tarball,depends
author Richard Dunbar <mojo@slitaz.org>
date Sun Nov 25 03:41:58 2012 +0000 (2012-11-25)
parents d46c7202fe2f
children 2b9f96603415
line source
1 # SliTaz package receipt.
3 PACKAGE="grep"
4 VERSION="2.11"
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 }