wok view gawk/receipt @ rev 20233

Up Dropbear (2018.76)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 05 12:39:40 2018 +0100 (2018-03-05)
parents 9e01bc6321ea
children 907aa9c9da2b
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"
12 HOST_ARCH="i486 arm"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # Rules to compile & install the temporary toolchain.
18 cook_tmp_toolchain()
19 {
20 cd $src
21 ./configure && make && make install
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure --libexecdir=/usr/lib \
29 $CONFIGURE_ARGS &&
30 make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share/locale
37 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/share/awk $fs/usr/share
40 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
41 }
43 # Pre and post install commands for Tazpkg.
44 # We must remove all Busybox symlink before installing.
45 pre_install()
46 {
47 rm -f "$1/usr/bin/awk"
48 }
50 post_remove()
51 {
52 ln -s /bin/busybox "$1/usr/bin/awk"
53 }