wok-next view grep/receipt @ rev 17921

Up terminus-font (4.39); re-draw few Cyrillic letters.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 10 16:25:20 2015 +0300 (2015-04-10)
parents d553e7773a21
children 9e01bc6321ea
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 ./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 $install/usr/bin $fs/usr
28 }
30 # Pre and post install commands for Tazpkg.
31 # We must remove all Busybox symlink before installing.
32 #
33 post_install()
34 {
35 local root
36 root=$1
37 echo "Processing pre-install commands..."
38 echo -n "Removing all Busybox replaced utils... "
39 for i in grep egrep fgrep ; do
40 bb=$root$(busybox grep bin/$i$ \
41 $root/var/lib/tazpkg/installed/busybox*/files.list | sed q)
42 readlink $bb 2> /dev/null | grep -q busybox || continue
43 rm -f $bb
44 ln -s /usr/bin/$i $bb
45 done
46 status
47 }
49 post_remove()
50 {
51 for i in grep egrep fgrep ; do
52 bb=$root$(busybox grep bin/$i$ \
53 $root/var/lib/tazpkg/installed/busybox*/files.list | sed q)
54 rm -f $bb
55 ln -s /bin/busybox $bb
56 done
57 }
59 pre_remove()
60 {
61 post_remove
62 }