wok annotate gawk/receipt @ rev 9740
mpfr bug update and fix dl
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 10 02:11:03 2011 +0200 (2011-05-10) |
parents | 48520ccbd2a8 |
children | d2e343365642 |
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 |
rcx@3535 | 40 # Pre and post install commands for Tazpkg. |
rcx@3535 | 41 # We must remove all Busybox symlink before installing. |
pankso@73 | 42 pre_install() |
pankso@70 | 43 { |
pankso@70 | 44 local root |
pankso@70 | 45 root=$1 |
pankso@70 | 46 rm -f $root/usr/bin/awk |
pankso@70 | 47 } |
pankso@70 | 48 |
rcx@3535 | 49 post_remove() |
rcx@3535 | 50 { |
rcx@3535 | 51 ln -s /bin/busybox /usr/bin/awk |
rcx@3535 | 52 } |