wok-next view grep/receipt @ rev 11490
esound: Fix build
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Dec 18 13:03:38 2011 +0100 (2011-12-18) |
parents | e81f99d5c01b |
children | d46c7202fe2f |
line source
1 # SliTaz package receipt.
3 PACKAGE="grep"
4 VERSION="2.9"
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 }