wok view gawk/receipt @ rev 15116
libcclc: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 14 21:26:49 2013 +0000 (2013-08-14) |
parents | 0f65053895df |
children | f4c22f009037 |
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 LICENCE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/gawk/"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS="gcc"
16 # Rules to compile & install the temporary toolchain.
17 cook_tmp_toolchain()
18 {
19 cd $src
20 ./configure && make && make install
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ./configure --libexecdir=/usr/lib \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/locale
36 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/awk $fs/usr/share
39 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
40 }
42 # Pre and post install commands for Tazpkg.
43 # We must remove all Busybox symlink before installing.
44 pre_install()
45 {
46 local root
47 root=$1
48 rm -f $root/usr/bin/awk
49 }
51 post_remove()
52 {
53 ln -s /bin/busybox $1/usr/bin/awk
54 }