wok view gawk/receipt @ rev 24780

transmission: autoconf 2.70+ bug workaround
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 20:17:02 2022 +0000 (2022-03-19)
parents 71360a13cd94
children d79ed38ace18
line source
1 # SliTaz package receipt.
3 PACKAGE="gawk"
4 VERSION="5.1.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 SUGGESTED="gawk-lang"
15 DEPENDS=""
16 BUILD_DEPENDS=""
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/doc/d;/ps/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to compile & install the temporary toolchain.
28 cook_tmp_toolchain()
29 {
30 ./configure &&
31 make &&
32 make install
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 ./configure \
39 --libexecdir=/usr/lib \
40 $CONFIGURE_ARGS &&
41 make &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 # locales
49 # moved to package gawk-lang
51 mkdir -p $fs/usr/share
53 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 }