wok-6.x annotate gawk/receipt @ rev 20802
updated cowpatty (4.6 -> 4.8)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 15 17:40:45 2019 +0100 (2019-02-15) |
parents | 9e01bc6321ea |
children | 907aa9c9da2b |
rev | line source |
---|---|
pankso@70 | 1 # SliTaz package receipt. |
pankso@70 | 2 |
pankso@70 | 3 PACKAGE="gawk" |
samuel_trassare@13489 | 4 VERSION="4.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" |
pankso@70 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@70 | 10 WEB_SITE="http://www.gnu.org/software/gawk/" |
pankso@70 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@19115 | 12 HOST_ARCH="i486 arm" |
pankso@70 | 13 |
slaxemulator@10348 | 14 DEPENDS="" |
pascal@19115 | 15 BUILD_DEPENDS="" |
slaxemulator@10348 | 16 |
gokhlayeh@8179 | 17 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8179 | 18 cook_tmp_toolchain() |
gokhlayeh@8179 | 19 { |
gokhlayeh@8179 | 20 cd $src |
gokhlayeh@8179 | 21 ./configure && make && make install |
gokhlayeh@8179 | 22 } |
gokhlayeh@8179 | 23 |
pankso@70 | 24 # Rules to configure and make the package. |
pankso@70 | 25 compile_rules() |
pankso@70 | 26 { |
pankso@70 | 27 cd $src |
slaxemulator@10285 | 28 ./configure --libexecdir=/usr/lib \ |
slaxemulator@10285 | 29 $CONFIGURE_ARGS && |
slaxemulator@10285 | 30 make && make install |
pankso@70 | 31 } |
pankso@70 | 32 |
pankso@70 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@70 | 34 genpkg_rules() |
pankso@70 | 35 { |
pankso@70 | 36 mkdir -p $fs/usr/share/locale |
pascal@14999 | 37 cp -a $install/usr/bin $fs/usr |
pankso@70 | 38 |
pascal@14999 | 39 cp -a $install/usr/share/awk $fs/usr/share |
pascal@14999 | 40 cp -a $install/usr/share/locale/fr $fs/usr/share/locale |
pankso@70 | 41 } |
pankso@70 | 42 |
rcx@3535 | 43 # Pre and post install commands for Tazpkg. |
rcx@3535 | 44 # We must remove all Busybox symlink before installing. |
pankso@73 | 45 pre_install() |
pankso@70 | 46 { |
pascal@18730 | 47 rm -f "$1/usr/bin/awk" |
pankso@70 | 48 } |
pankso@70 | 49 |
rcx@3535 | 50 post_remove() |
rcx@3535 | 51 { |
pascal@18730 | 52 ln -s /bin/busybox "$1/usr/bin/awk" |
rcx@3535 | 53 } |