wok-6.x view gawk/receipt @ rev 73
Modified 'gawk' receipt (pre_install)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Dec 27 21:29:35 2007 +0100 (2007-12-27) |
parents | f11ec651a7e4 |
children | 17a39e4461e4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gawk"
4 VERSION="3.1.6"
5 CATEGORY="extra"
6 SHORT_DESC="GNU awk to handle simple data-reformatting."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/gawk/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 ./configure \
17 --prefix=/usr \
18 --libexecdir=/usr/lib \
19 --infodir=/usr/share/info \
20 --mandir=/usr/share/man \
21 $CONFIGURE_ARGS
22 make
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/locale
30 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/share/awk $fs/usr/share
33 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
35 # Da strip...
36 strip -s $fs/usr/bin/*
37 }
39 # Post install to avoid erasing Busybox link
40 pre_install()
41 {
42 local root
43 root=$1
44 rm -f $root/usr/bin/awk
45 }