wok-current annotate gawk/receipt @ rev 5431
Up: libgiomm, libgiomm-dev (2.24.2)
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed May 05 02:02:54 2010 +0000 (2010-05-05) |
parents | 17a39e4461e4 |
children | f903372d213b |
rev | line source |
---|---|
pankso@70 | 1 # SliTaz package receipt. |
pankso@70 | 2 |
pankso@70 | 3 PACKAGE="gawk" |
pankso@70 | 4 VERSION="3.1.6" |
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 |
pankso@70 | 12 # Rules to configure and make the package. |
pankso@70 | 13 compile_rules() |
pankso@70 | 14 { |
pankso@70 | 15 cd $src |
pankso@70 | 16 ./configure \ |
pankso@70 | 17 --prefix=/usr \ |
pankso@70 | 18 --libexecdir=/usr/lib \ |
pankso@70 | 19 --infodir=/usr/share/info \ |
pankso@70 | 20 --mandir=/usr/share/man \ |
pankso@70 | 21 $CONFIGURE_ARGS |
pankso@70 | 22 make |
pankso@70 | 23 make DESTDIR=$PWD/_pkg install |
pankso@70 | 24 } |
pankso@70 | 25 |
pankso@70 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@70 | 27 genpkg_rules() |
pankso@70 | 28 { |
pankso@70 | 29 mkdir -p $fs/usr/share/locale |
pankso@70 | 30 cp -a $_pkg/usr/bin $fs/usr |
pankso@70 | 31 |
pankso@70 | 32 cp -a $_pkg/usr/share/awk $fs/usr/share |
pankso@70 | 33 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale |
pankso@70 | 34 |
pankso@70 | 35 # Da strip... |
pankso@70 | 36 strip -s $fs/usr/bin/* |
pankso@70 | 37 } |
pankso@70 | 38 |
rcx@3535 | 39 # Pre and post install commands for Tazpkg. |
rcx@3535 | 40 # We must remove all Busybox symlink before installing. |
pankso@73 | 41 pre_install() |
pankso@70 | 42 { |
pankso@70 | 43 local root |
pankso@70 | 44 root=$1 |
pankso@70 | 45 rm -f $root/usr/bin/awk |
pankso@70 | 46 } |
pankso@70 | 47 |
rcx@3535 | 48 post_remove() |
rcx@3535 | 49 { |
rcx@3535 | 50 ln -s /bin/busybox /usr/bin/awk |
rcx@3535 | 51 } |