wok-current view gawk/receipt @ rev 24360
ardour: give gcc83 a try
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 04 07:19:07 2022 +0100 (2022-02-04) |
parents | 72dc2894e87b |
children | 4f7327b96a5a |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/doc/d;/ps/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to compile & install the temporary toolchain.
27 cook_tmp_toolchain()
28 {
29 ./configure &&
30 make -j 1 &&
31 make install
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 --libexecdir=/usr/lib \
39 $CONFIGURE_ARGS &&
40 make -j 1 &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share/locale
49 # Set list of wanted locales in LOCALE_PACK
50 . $WOK/slitaz-i18n/stuff/locale-pack.conf
52 # Copy message files in wanted languages, if available
53 for locale in $LOCALE_PACK
54 do
55 [ -d $install/usr/share/locale/$locale ] || continue
56 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
57 done
59 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/share/awk $fs/usr/share
62 }
64 # Pre and post install commands for Tazpkg.
65 # We must remove all Busybox symlink before installing.
66 pre_install()
67 {
68 rm -f "$1/usr/bin/awk"
69 }
71 post_remove()
72 {
73 ln -s /bin/busybox "$1/usr/bin/awk"
74 }