wok-stable view gawk/receipt @ rev 8728
Fixed linux not to put a tmp folder in WOK. Instead its WOK/PACKAGE/tmp now. This fixes a problem with update-repository dying out cause of WOK/tmp folder.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 19 01:35:37 2011 +0000 (2011-02-19) |
parents | f903372d213b |
children | 02bbaa9d12ba |
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 DEPENDS="glibc-base"
9 BUILD_DEPENDS="gcc"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/gawk/"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to compile & install the temporary toolchain.
15 cook_tmp_toolchain()
16 {
17 cd $src
18 ./configure && make && make install
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 ./configure --libexecdir=/usr/lib &&
26 make &&
27 make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/locale
34 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/share/awk $fs/usr/share
37 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
39 # Da strip...
40 strip -s $fs/usr/bin/*
41 }
43 # Pre and post install commands for Tazpkg.
44 # We must remove all Busybox symlink before installing.
45 pre_install()
46 {
47 local root
48 root=$1
49 rm -f $root/usr/bin/awk
50 }
52 post_remove()
53 {
54 ln -s /bin/busybox /usr/bin/awk
55 }