wok view gawk/receipt @ rev 10837

Add libmatchbox (Match may be used for kids or small device desktop)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 08 23:20:29 2011 +0200 (2011-06-08)
parents 4fb4d1ed4e62
children 0f65053895df
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 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 }