wok-current annotate gawk/receipt @ rev 22805

updated gawk (4.2.1 -> 5.0.1)
author Hans-G?nter Theisgen
date Tue Jan 28 10:03:39 2020 +0100 (2020-01-28)
parents 907aa9c9da2b
children 71360a13cd94
rev   line source
pankso@70 1 # SliTaz package receipt.
pankso@70 2
pankso@70 3 PACKAGE="gawk"
Hans-G?nter@22805 4 VERSION="5.0.1"
pankso@204 5 CATEGORY="development"
pankso@70 6 SHORT_DESC="GNU awk to handle simple data-reformatting."
pankso@70 7 MAINTAINER="pankso@slitaz.org"
pascal@15201 8 LICENSE="GPL3"
Hans-G?nter@20948 9 WEB_SITE="https://www.gnu.org/software/gawk/"
Hans-G?nter@20948 10
pankso@70 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@70 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@70 13
slaxemulator@10348 14 DEPENDS=""
pascal@19115 15 BUILD_DEPENDS=""
Hans-G?nter@22805 16
Hans-G?nter@20948 17 HOST_ARCH="i486 arm"
slaxemulator@10348 18
gokhlayeh@8179 19 # Rules to compile & install the temporary toolchain.
gokhlayeh@8179 20 cook_tmp_toolchain()
gokhlayeh@8179 21 {
Hans-G?nter@20948 22 ./configure &&
Hans-G?nter@20948 23 make -j 1 &&
Hans-G?nter@20948 24 make install
gokhlayeh@8179 25 }
gokhlayeh@8179 26
pankso@70 27 # Rules to configure and make the package.
pankso@70 28 compile_rules()
pankso@70 29 {
Hans-G?nter@22805 30 ./configure \
Hans-G?nter@22805 31 --libexecdir=/usr/lib \
slaxemulator@10285 32 $CONFIGURE_ARGS &&
Hans-G?nter@20948 33 make -j 1 &&
Hans-G?nter@20948 34 make install
pankso@70 35 }
pankso@70 36
pankso@70 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@70 38 genpkg_rules()
pankso@70 39 {
pankso@70 40 mkdir -p $fs/usr/share/locale
Hans-G?nter@22805 41
Hans-G?nter@22805 42 # Set list of wanted locales in LOCALE_PACK
Hans-G?nter@22805 43 . $WOK/slitaz-i18n/stuff/locale-pack.conf
Hans-G?nter@22805 44
Hans-G?nter@22805 45 # Copy message files in wanted languages, if available
Hans-G?nter@22805 46 for locale in $LOCALE_PACK
Hans-G?nter@22805 47 do
Hans-G?nter@22805 48 [ -d $install/usr/share/locale/$locale ] || continue
Hans-G?nter@20948 49 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
Hans-G?nter@22805 50 done
Hans-G?nter@20948 51
Hans-G?nter@20948 52 cp -a $install/usr/bin $fs/usr
pankso@70 53
Hans-G?nter@20948 54 cp -a $install/usr/share/awk $fs/usr/share
pankso@70 55 }
pankso@70 56
rcx@3535 57 # Pre and post install commands for Tazpkg.
rcx@3535 58 # We must remove all Busybox symlink before installing.
pankso@73 59 pre_install()
pankso@70 60 {
pascal@18730 61 rm -f "$1/usr/bin/awk"
pankso@70 62 }
pankso@70 63
rcx@3535 64 post_remove()
rcx@3535 65 {
pascal@18730 66 ln -s /bin/busybox "$1/usr/bin/awk"
rcx@3535 67 }