wok-stable view gawk/receipt @ rev 10090

patch: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 07:16:53 2011 +0000 (2011-05-20)
parents 02bbaa9d12ba
children 4fb4d1ed4e62
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 compile & install the temporary toolchain.
13 cook_tmp_toolchain()
14 {
15 cd $src
16 ./configure && make && make install
17 }
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure --libexecdir=/usr/lib &&
24 make &&
25 make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/locale
32 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/share/awk $fs/usr/share
35 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
36 }
38 # Pre and post install commands for Tazpkg.
39 # We must remove all Busybox symlink before installing.
40 pre_install()
41 {
42 local root
43 root=$1
44 rm -f $root/usr/bin/awk
45 }
47 post_remove()
48 {
49 ln -s /bin/busybox /usr/bin/awk
50 }