wok-current view grep/receipt @ rev 14732

Add xorg-xf86-video-cirrus, xorg-xf86-video-mach64, xorg-xf86-video-s3virge, xorg-xf86-video-savage, xorg-xf86-video-sis, xorg-xf86-video-tseng
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 13 13:22:51 2013 +0200 (2013-06-13)
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 }