wok annotate gawk/receipt @ rev 13348
Up nathive (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 07 12:00:57 2012 +0200 (2012-09-07) |
parents | 4fb4d1ed4e62 |
children | 0f65053895df |
rev | line source |
---|---|
pankso@70 | 1 # SliTaz package receipt. |
pankso@70 | 2 |
pankso@70 | 3 PACKAGE="gawk" |
slaxemulator@6311 | 4 VERSION="3.1.8" |
pankso@204 | 5 CATEGORY="development" |
pankso@70 | 6 SHORT_DESC="GNU awk to handle simple data-reformatting." |
pankso@70 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@70 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@70 | 9 WEB_SITE="http://www.gnu.org/software/gawk/" |
pankso@70 | 10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@70 | 11 |
slaxemulator@10348 | 12 DEPENDS="" |
slaxemulator@10348 | 13 BUILD_DEPENDS="gcc" |
slaxemulator@10348 | 14 |
gokhlayeh@8179 | 15 # Rules to compile & install the temporary toolchain. |
gokhlayeh@8179 | 16 cook_tmp_toolchain() |
gokhlayeh@8179 | 17 { |
gokhlayeh@8179 | 18 cd $src |
gokhlayeh@8179 | 19 ./configure && make && make install |
gokhlayeh@8179 | 20 } |
gokhlayeh@8179 | 21 |
pankso@70 | 22 # Rules to configure and make the package. |
pankso@70 | 23 compile_rules() |
pankso@70 | 24 { |
pankso@70 | 25 cd $src |
slaxemulator@10285 | 26 ./configure --libexecdir=/usr/lib \ |
slaxemulator@10285 | 27 $CONFIGURE_ARGS && |
slaxemulator@10285 | 28 make && make install |
pankso@70 | 29 } |
pankso@70 | 30 |
pankso@70 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@70 | 32 genpkg_rules() |
pankso@70 | 33 { |
pankso@70 | 34 mkdir -p $fs/usr/share/locale |
pankso@70 | 35 cp -a $_pkg/usr/bin $fs/usr |
pankso@70 | 36 |
pankso@70 | 37 cp -a $_pkg/usr/share/awk $fs/usr/share |
pankso@70 | 38 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale |
pankso@70 | 39 } |
pankso@70 | 40 |
rcx@3535 | 41 # Pre and post install commands for Tazpkg. |
rcx@3535 | 42 # We must remove all Busybox symlink before installing. |
pankso@73 | 43 pre_install() |
pankso@70 | 44 { |
pankso@70 | 45 local root |
pankso@70 | 46 root=$1 |
pankso@70 | 47 rm -f $root/usr/bin/awk |
pankso@70 | 48 } |
pankso@70 | 49 |
rcx@3535 | 50 post_remove() |
rcx@3535 | 51 { |
slaxemulator@10285 | 52 ln -s /bin/busybox $1/usr/bin/awk |
rcx@3535 | 53 } |