# HG changeset patch # User Christophe Lincoln # Date 1198530382 -3600 # Node ID f11ec651a7e4ede2d07107955d413648c3373eb3 # Parent e34c94590b59ed66cff1d73e58b4a29365ef3db1 Add : gawk (gcc BUILD_DEPENDS) diff -r e34c94590b59 -r f11ec651a7e4 gawk/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gawk/receipt Mon Dec 24 22:06:22 2007 +0100 @@ -0,0 +1,47 @@ +# SliTaz package receipt. + +PACKAGE="gawk" +VERSION="3.1.6" +CATEGORY="extra" +SHORT_DESC="GNU awk to handle simple data-reformatting." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.gnu.org/software/gawk/" +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/locale + cp -a $_pkg/usr/bin $fs/usr + + cp -a $_pkg/usr/share/awk $fs/usr/share + cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale + + # Da strip... + strip -s $fs/usr/bin/* +} + +# Post install to avoid erasing Busybox link +pot_install() +{ + local root + root=$1 + rm -f $root/usr/bin/awk +} +SELF_INSTALL=1 +