wok-next view gawk/receipt @ rev 10293

fontconfig: use --with-arch=ARCH to cross compile
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 22 00:39:42 2011 +0200 (2011-05-22)
parents d2e343365642
children 85327bf85dbc
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 $CONFIGURE_ARGS &&
25 make && 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 $1/usr/bin/awk
50 }