wok-current view gawk/receipt @ rev 6535
Up: subversion to 1.6.13. Added build_depends need for libproxy. libproxy needs a rebuild anyway
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Oct 06 00:38:44 2010 +0000 (2010-10-06) |
parents | eb2c55805aa9 |
children | 48520ccbd2a8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gawk"
4 VERSION="3.1.8"
5 CATEGORY="development"
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 # Pre and post install commands for Tazpkg.
40 # We must remove all Busybox symlink before installing.
41 pre_install()
42 {
43 local root
44 root=$1
45 rm -f $root/usr/bin/awk
46 }
48 post_remove()
49 {
50 ln -s /bin/busybox /usr/bin/awk
51 }