wok view gawk/receipt @ rev 21840

updated remind (03.01.15 -> 03.01.16)
author Hans-G?nter Theisgen
date Sat Sep 14 16:43:37 2019 +0100 (2019-09-14)
parents d1139a9dbf88
children 72dc2894e87b
line source
1 # SliTaz package receipt.
3 PACKAGE="gawk"
4 VERSION="4.2.1"
5 CATEGORY="development"
6 SHORT_DESC="GNU awk to handle simple data-reformatting."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/gawk/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
16 HOST_ARCH="i486 arm"
18 # Rules to compile & install the temporary toolchain.
19 cook_tmp_toolchain()
20 {
21 ./configure &&
22 make -j 1 &&
23 make install
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --libexecdir=/usr/lib \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 # locales
40 mkdir -p $fs/usr/share/locale
41 LOCALES="da de es fr id it pt_BR zh_CN"
42 for locale in $LOCALES
43 do
44 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
45 done
47 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/share/awk $fs/usr/share
50 }
52 # Pre and post install commands for Tazpkg.
53 # We must remove all Busybox symlink before installing.
54 pre_install()
55 {
56 rm -f "$1/usr/bin/awk"
57 }
59 post_remove()
60 {
61 ln -s /bin/busybox "$1/usr/bin/awk"
62 }