wok-next annotate grep/receipt @ rev 7359
Up: scribus to 1.3.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Nov 23 01:59:29 2010 +0000 (2010-11-23) |
parents | 2ea1249ebb14 |
children | 64c3eda7d700 |
rev | line source |
---|---|
paul@7100 | 1 # SliTaz package receipt. |
paul@7100 | 2 |
paul@7100 | 3 PACKAGE="grep" |
paul@7100 | 4 VERSION="2.7" |
paul@7100 | 5 CATEGORY="development" |
paul@7100 | 6 SHORT_DESC="GNU Global Regular Expression Print." |
paul@7100 | 7 MAINTAINER="paul@slitaz.org" |
paul@7100 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@7100 | 9 WEB_SITE="http://www.gnu.org/software/grep/" |
paul@7100 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
paul@7100 | 11 |
paul@7100 | 12 # Rules to configure and make the package. |
paul@7100 | 13 compile_rules() |
paul@7100 | 14 { |
paul@7100 | 15 cd $src |
paul@7100 | 16 ./configure \ |
paul@7100 | 17 --prefix=/usr \ |
paul@7100 | 18 --infodir=/usr/share/info \ |
paul@7100 | 19 --mandir=/usr/share/man \ |
paul@7100 | 20 $CONFIGURE_ARGS && |
paul@7100 | 21 make && make DESTDIR=$PWD/_pkg install |
paul@7100 | 22 } |
paul@7100 | 23 |
paul@7100 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@7100 | 25 genpkg_rules() |
paul@7100 | 26 { |
paul@7100 | 27 mkdir -p $fs/usr |
paul@7100 | 28 cp -a $_pkg/usr/bin $fs/usr |
paul@7100 | 29 } |
paul@7100 | 30 |
slaxemulator@7187 | 31 # Pre and post install commands for Tazpkg. |
slaxemulator@7187 | 32 # We must remove all Busybox symlink before installing. |
slaxemulator@7187 | 33 # |
slaxemulator@7187 | 34 pre_install() |
slaxemulator@7187 | 35 { |
slaxemulator@7187 | 36 local root |
slaxemulator@7187 | 37 root=$1 |
slaxemulator@7187 | 38 echo "Processing pre-install commands..." |
slaxemulator@7187 | 39 echo -n "Removing all Busybox replaced utils... " |
slaxemulator@7187 | 40 rm -f $root/usr/bin/grep |
slaxemulator@7187 | 41 status |
slaxemulator@7187 | 42 } |
slaxemulator@7187 | 43 |
slaxemulator@7187 | 44 post_remove() |
slaxemulator@7187 | 45 { |
slaxemulator@7187 | 46 ln -s /bin/busybox /usr/bin/grep |
slaxemulator@7187 | 47 } |