wok-next view grep/receipt @ rev 12470

Up: pcre (8.30) Have --enable-unicode-properties so we can build glib with it
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 23 12:50:36 2012 +0200 (2012-04-23)
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 }