wok-6.x annotate gawk/receipt @ rev 9798

udev-light: fix stuff path (again)
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 14 13:48:00 2011 +0200 (2011-05-14)
parents 02bbaa9d12ba
children 4fb4d1ed4e62
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
gokhlayeh@8179 12 # Rules to compile & install the temporary toolchain.
gokhlayeh@8179 13 cook_tmp_toolchain()
gokhlayeh@8179 14 {
gokhlayeh@8179 15 cd $src
gokhlayeh@8179 16 ./configure && make && make install
gokhlayeh@8179 17 }
gokhlayeh@8179 18
pankso@70 19 # Rules to configure and make the package.
pankso@70 20 compile_rules()
pankso@70 21 {
pankso@70 22 cd $src
gokhlayeh@8179 23 ./configure --libexecdir=/usr/lib &&
gokhlayeh@8179 24 make &&
gokhlayeh@8179 25 make install
pankso@70 26 }
pankso@70 27
pankso@70 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@70 29 genpkg_rules()
pankso@70 30 {
pankso@70 31 mkdir -p $fs/usr/share/locale
pankso@70 32 cp -a $_pkg/usr/bin $fs/usr
pankso@70 33
pankso@70 34 cp -a $_pkg/usr/share/awk $fs/usr/share
pankso@70 35 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
pankso@70 36 }
pankso@70 37
rcx@3535 38 # Pre and post install commands for Tazpkg.
rcx@3535 39 # We must remove all Busybox symlink before installing.
pankso@73 40 pre_install()
pankso@70 41 {
pankso@70 42 local root
pankso@70 43 root=$1
pankso@70 44 rm -f $root/usr/bin/awk
pankso@70 45 }
pankso@70 46
rcx@3535 47 post_remove()
rcx@3535 48 {
rcx@3535 49 ln -s /bin/busybox /usr/bin/awk
rcx@3535 50 }