wok-4.x annotate gawk/receipt @ rev 8708

squid, squid-auth-helpers: improve depends.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Feb 17 23:35:11 2011 +0100 (2011-02-17)
parents f903372d213b
children 02bbaa9d12ba
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"
gokhlayeh@8179 8 DEPENDS="glibc-base"
gokhlayeh@8179 9 BUILD_DEPENDS="gcc"
pankso@70 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@70 11 WEB_SITE="http://www.gnu.org/software/gawk/"
pankso@70 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@70 13
gokhlayeh@8179 14 # Rules to compile & install the temporary toolchain.
gokhlayeh@8179 15 cook_tmp_toolchain()
gokhlayeh@8179 16 {
gokhlayeh@8179 17 cd $src
gokhlayeh@8179 18 ./configure && make && make install
gokhlayeh@8179 19 }
gokhlayeh@8179 20
pankso@70 21 # Rules to configure and make the package.
pankso@70 22 compile_rules()
pankso@70 23 {
pankso@70 24 cd $src
gokhlayeh@8179 25 ./configure --libexecdir=/usr/lib &&
gokhlayeh@8179 26 make &&
gokhlayeh@8179 27 make install
pankso@70 28 }
pankso@70 29
pankso@70 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@70 31 genpkg_rules()
pankso@70 32 {
pankso@70 33 mkdir -p $fs/usr/share/locale
pankso@70 34 cp -a $_pkg/usr/bin $fs/usr
pankso@70 35
pankso@70 36 cp -a $_pkg/usr/share/awk $fs/usr/share
pankso@70 37 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
pankso@70 38
pankso@70 39 # Da strip...
pankso@70 40 strip -s $fs/usr/bin/*
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 {
pankso@70 47 local root
pankso@70 48 root=$1
pankso@70 49 rm -f $root/usr/bin/awk
pankso@70 50 }
pankso@70 51
rcx@3535 52 post_remove()
rcx@3535 53 {
rcx@3535 54 ln -s /bin/busybox /usr/bin/awk
rcx@3535 55 }