wok annotate gawk/receipt @ rev 25092
updated pari and pari-dev (2.11.3 -> 2.13.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 10:01:45 2022 +0100 (2022-06-18) |
parents | 71360a13cd94 |
children | d79ed38ace18 |
rev | line source |
---|---|
pankso@70 | 1 # SliTaz package receipt. |
pankso@70 | 2 |
pankso@70 | 3 PACKAGE="gawk" |
Hans-G?nter@24586 | 4 VERSION="5.1.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 |
Hans-G?nter@24586 | 14 SUGGESTED="gawk-lang" |
slaxemulator@10348 | 15 DEPENDS="" |
pascal@19115 | 16 BUILD_DEPENDS="" |
Hans-G?nter@22805 | 17 |
Hans-G?nter@20948 | 18 HOST_ARCH="i486 arm" |
slaxemulator@10348 | 19 |
pascal@24336 | 20 # What is the latest version available today? |
pascal@24336 | 21 current_version() |
pascal@24336 | 22 { |
pascal@24336 | 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 24 sed "/doc/d;/ps/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 25 } |
pascal@24336 | 26 |
gokhlayeh@8179 | 27 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8179 | 28 cook_tmp_toolchain() |
gokhlayeh@8179 | 29 { |
Hans-G?nter@20948 | 30 ./configure && |
Hans-G?nter@24586 | 31 make && |
Hans-G?nter@20948 | 32 make install |
gokhlayeh@8179 | 33 } |
gokhlayeh@8179 | 34 |
pankso@70 | 35 # Rules to configure and make the package. |
pankso@70 | 36 compile_rules() |
pankso@70 | 37 { |
Hans-G?nter@22805 | 38 ./configure \ |
Hans-G?nter@22805 | 39 --libexecdir=/usr/lib \ |
slaxemulator@10285 | 40 $CONFIGURE_ARGS && |
Hans-G?nter@24586 | 41 make && |
Hans-G?nter@20948 | 42 make install |
pankso@70 | 43 } |
pankso@70 | 44 |
pankso@70 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@70 | 46 genpkg_rules() |
pankso@70 | 47 { |
Hans-G?nter@24586 | 48 # locales |
Hans-G?nter@24586 | 49 # moved to package gawk-lang |
Hans-G?nter@22805 | 50 |
Hans-G?nter@24586 | 51 mkdir -p $fs/usr/share |
Hans-G?nter@20948 | 52 |
Hans-G?nter@20948 | 53 cp -a $install/usr/bin $fs/usr |
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 } |