wok-next view gawk/receipt @ rev 19734
Up cookutils(905) (v2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 27 16:29:45 2017 +0300 (2017-05-27) |
parents | d1139a9dbf88 |
children | 7387df590f12 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gawk"
4 VERSION="4.1.3"
5 CATEGORY="development"
6 SHORT_DESC="GNU awk to handle simple data-reformatting."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/gawk/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="readline"
16 BUILD_DEPENDS="readline-dev gettext"
18 # Rules to compile & install the temporary toolchain.
19 cook_tmp_toolchain()
20 {
21 cd $src
22 ./configure && make && make install
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure $CONFIGURE_ARGS && make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cook_copy_folders bin lib awk
35 }
37 # Pre and post install commands for Tazpkg.
38 # We must remove all Busybox symlink before installing.
39 pre_install()
40 {
41 rm -f "$1/usr/bin/awk"
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox "$1/usr/bin/awk"
47 }