wok-6.x view gawk/receipt @ rev 13863
Up: vlc (2.0.5) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 11 21:38:00 2013 +0100 (2013-01-11) |
parents | 85327bf85dbc |
children | 2b9f96603415 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gawk"
4 VERSION="4.0.1"
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 DEPENDS=""
13 BUILD_DEPENDS="gcc"
15 # Rules to compile & install the temporary toolchain.
16 cook_tmp_toolchain()
17 {
18 cd $src
19 ./configure && make && make install
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ./configure --libexecdir=/usr/lib \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/locale
35 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/share/awk $fs/usr/share
38 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
39 }
41 # Pre and post install commands for Tazpkg.
42 # We must remove all Busybox symlink before installing.
43 pre_install()
44 {
45 local root
46 root=$1
47 rm -f $root/usr/bin/awk
48 }
50 post_remove()
51 {
52 ln -s /bin/busybox $1/usr/bin/awk
53 }