wok-next view gawk/receipt @ rev 9670
openerp-web: fix init script
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 02 16:23:17 2011 +0200 (2011-05-02) |
parents | 48520ccbd2a8 |
children | d2e343365642 |
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
38 }
40 # Pre and post install commands for Tazpkg.
41 # We must remove all Busybox symlink before installing.
42 pre_install()
43 {
44 local root
45 root=$1
46 rm -f $root/usr/bin/awk
47 }
49 post_remove()
50 {
51 ln -s /bin/busybox /usr/bin/awk
52 }