wok view gawk/receipt @ rev 23223

hplip: inserted include statement
author Hans-G?nter Theisgen
date Mon Mar 23 15:59:35 2020 +0100 (2020-03-23)
parents 907aa9c9da2b
children 71360a13cd94
line source
1 # SliTaz package receipt.
3 PACKAGE="gawk"
4 VERSION="5.0.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=""
17 HOST_ARCH="i486 arm"
19 # Rules to compile & install the temporary toolchain.
20 cook_tmp_toolchain()
21 {
22 ./configure &&
23 make -j 1 &&
24 make install
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --libexecdir=/usr/lib \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/locale
42 # Set list of wanted locales in LOCALE_PACK
43 . $WOK/slitaz-i18n/stuff/locale-pack.conf
45 # Copy message files in wanted languages, if available
46 for locale in $LOCALE_PACK
47 do
48 [ -d $install/usr/share/locale/$locale ] || continue
49 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
50 done
52 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/share/awk $fs/usr/share
55 }
57 # Pre and post install commands for Tazpkg.
58 # We must remove all Busybox symlink before installing.
59 pre_install()
60 {
61 rm -f "$1/usr/bin/awk"
62 }
64 post_remove()
65 {
66 ln -s /bin/busybox "$1/usr/bin/awk"
67 }