wok-current view gawk/receipt @ rev 18064

Up tazpanel (498), tazpkg (806).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 18 17:20:03 2015 +0300 (2015-05-18)
parents 2b9f96603415
children 9e01bc6321ea
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 LICENSE="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 }