wok-6.x annotate gawk/receipt @ rev 21046
updated imagemagick-dev again (6.8.4-10 -> 7.0.8.33)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 12 16:25:18 2019 +0100 (2019-03-12) |
parents | d1139a9dbf88 |
children | 72dc2894e87b |
rev | line source |
---|---|
pankso@70 | 1 # SliTaz package receipt. |
pankso@70 | 2 |
pankso@70 | 3 PACKAGE="gawk" |
Hans-G?nter@20948 | 4 VERSION="4.2.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@20948 | 16 HOST_ARCH="i486 arm" |
slaxemulator@10348 | 17 |
gokhlayeh@8179 | 18 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8179 | 19 cook_tmp_toolchain() |
gokhlayeh@8179 | 20 { |
Hans-G?nter@20948 | 21 ./configure && |
Hans-G?nter@20948 | 22 make -j 1 && |
Hans-G?nter@20948 | 23 make install |
gokhlayeh@8179 | 24 } |
gokhlayeh@8179 | 25 |
pankso@70 | 26 # Rules to configure and make the package. |
pankso@70 | 27 compile_rules() |
pankso@70 | 28 { |
Hans-G?nter@20948 | 29 ./configure \ |
Hans-G?nter@20948 | 30 --libexecdir=/usr/lib \ |
slaxemulator@10285 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@20948 | 32 make -j 1 && |
Hans-G?nter@20948 | 33 make install |
pankso@70 | 34 } |
pankso@70 | 35 |
pankso@70 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@70 | 37 genpkg_rules() |
pankso@70 | 38 { |
Hans-G?nter@20948 | 39 # locales |
pankso@70 | 40 mkdir -p $fs/usr/share/locale |
Hans-G?nter@20948 | 41 LOCALES="da de es fr id it pt_BR zh_CN" |
Hans-G?nter@20948 | 42 for locale in $LOCALES |
Hans-G?nter@20948 | 43 do |
Hans-G?nter@20948 | 44 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale |
Hans-G?nter@20948 | 45 done |
Hans-G?nter@20948 | 46 |
Hans-G?nter@20948 | 47 cp -a $install/usr/bin $fs/usr |
pankso@70 | 48 |
Hans-G?nter@20948 | 49 cp -a $install/usr/share/awk $fs/usr/share |
pankso@70 | 50 } |
pankso@70 | 51 |
rcx@3535 | 52 # Pre and post install commands for Tazpkg. |
rcx@3535 | 53 # We must remove all Busybox symlink before installing. |
pankso@73 | 54 pre_install() |
pankso@70 | 55 { |
pascal@18730 | 56 rm -f "$1/usr/bin/awk" |
pankso@70 | 57 } |
pankso@70 | 58 |
rcx@3535 | 59 post_remove() |
rcx@3535 | 60 { |
pascal@18730 | 61 ln -s /bin/busybox "$1/usr/bin/awk" |
rcx@3535 | 62 } |