wok-current view grep/receipt @ rev 16674
Up slitaz-arm-rpi with new piborg, piface, pibrella
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 15 21:56:18 2014 +0200 (2014-05-15) |
parents | cc6ceae3a5e4 |
children | d553e7773a21 |
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 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/grep/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="pcre"
14 BUILD_DEPENDS="pcre-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure $CONFIGURE_ARGS &&
21 make && make install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $install/usr/bin $fs/usr
29 }
31 # Pre and post install commands for Tazpkg.
32 # We must remove all Busybox symlink before installing.
33 #
34 pre_install()
35 {
36 local root
37 root=$1
38 echo "Processing pre-install commands..."
39 echo -n "Removing all Busybox replaced utils... "
40 rm -f $root/usr/bin/grep
41 status
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox $1/usr/bin/grep
47 }