summaryrefslogtreecommitdiff
path: root/testing/gawk
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-06 00:01:15 +0000
committerroot <root@rshg054.dnsready.net>2012-04-06 00:01:15 +0000
commit870286a74f6142709671fd3437944382f29bf352 (patch)
tree00501e7d18319db16b20e39436b8fb60837bdfe5 /testing/gawk
parenta7f79fc1ced18c586d320033ac9738e98a21b550 (diff)
Fri Apr 6 00:01:15 UTC 2012
Diffstat (limited to 'testing/gawk')
-rw-r--r--testing/gawk/PKGBUILD41
-rw-r--r--testing/gawk/gawk.install22
2 files changed, 63 insertions, 0 deletions
diff --git a/testing/gawk/PKGBUILD b/testing/gawk/PKGBUILD
new file mode 100644
index 000000000..173738f77
--- /dev/null
+++ b/testing/gawk/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 155496 2012-04-04 09:15:56Z allan $
+# Maintainer:
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=gawk
+pkgver=4.0.1
+pkgrel=1
+pkgdesc="GNU version of awk"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/directory/GNU/gawk.html"
+license=('GPL')
+groups=('base')
+depends=('sh' 'glibc')
+provides=('awk')
+install=gawk.install
+source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.sig})
+md5sums=('bab2bda483e9f32be65b43b8dab39fa5'
+ '7cf4e4896509c655dd00ecd4ca9098ef')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr --libexecdir=/usr/lib
+ make
+}
+
+check() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make check
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ install -dm755 ${pkgdir}/bin
+ ln -sf /usr/bin/gawk ${pkgdir}/bin/
+ ln -sf gawk ${pkgdir}/bin/awk
+}
diff --git a/testing/gawk/gawk.install b/testing/gawk/gawk.install
new file mode 100644
index 000000000..3f7f24cfe
--- /dev/null
+++ b/testing/gawk/gawk.install
@@ -0,0 +1,22 @@
+infodir=usr/share/info
+filelist=(gawk.info.gz gawkinet.info.gz)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: