summaryrefslogtreecommitdiff
path: root/testing/gawk/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gawk/PKGBUILD')
-rw-r--r--testing/gawk/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/gawk/PKGBUILD b/testing/gawk/PKGBUILD
new file mode 100644
index 000000000..eeb4803c0
--- /dev/null
+++ b/testing/gawk/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 141716 2011-11-02 12:57:23Z tpowa $
+# Maintainer:
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=gawk
+pkgver=4.0.0
+pkgrel=2
+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)
+md5sums=('51e417b71287629940051e6f652c6492')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr --libexecdir=/usr/lib
+ make
+}
+
+check() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make -j1 check
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ install -dm755 ${pkgdir}/bin
+ mv ${pkgdir}/usr/bin/gawk* ${pkgdir}/bin/
+ ln -sf gawk ${pkgdir}/bin/awk
+ ln -sf /bin/gawk ${pkgdir}/usr/bin/
+}