summaryrefslogtreecommitdiff
path: root/core/gawk
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-07 04:59:01 +0000
committerroot <root@rshg047.dnsready.net>2011-07-07 04:59:01 +0000
commit75b1bc45a0e39074e42b6a26a9f72ac2e049bdc1 (patch)
tree9bd2c1fbe4c9a0fd5ede1a5667137113d48d2c69 /core/gawk
parenta135f8563fea25509d9a92db7c03ac3d08230a3f (diff)
Thu Jul 7 04:59:01 UTC 2011
Diffstat (limited to 'core/gawk')
-rw-r--r--core/gawk/PKGBUILD35
-rw-r--r--core/gawk/gawk.install2
2 files changed, 21 insertions, 16 deletions
diff --git a/core/gawk/PKGBUILD b/core/gawk/PKGBUILD
index 81af6681c..a61f089c0 100644
--- a/core/gawk/PKGBUILD
+++ b/core/gawk/PKGBUILD
@@ -1,36 +1,41 @@
-# $Id: PKGBUILD 100064 2010-11-20 03:46:49Z allan $
+# $Id: PKGBUILD 130241 2011-07-04 15:07:06Z allan $
# Maintainer:
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gawk
-pkgver=3.1.8
-pkgrel=2
-pkgdesc="Gnu version of awk"
-arch=(i686 x86_64)
+pkgver=4.0.0
+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)
-depends=('sh' 'glibc')
-md5sums=('35937a0f83f0efe7a8c2dee635624784')
+md5sums=('51e417b71287629940051e6f652c6492')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${srcdir}/${pkgname}-${pkgver}
- ./configure --prefix=/usr
+ ./configure --prefix=/usr --libexecdir=/usr/lib
make
}
+check() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make -j1 check
+}
+
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
- mv ${pkgdir}/usr/libexec ${pkgdir}/usr/lib
- install -dm755 ${pkgdir}/bin
+
+ install -dm755 ${pkgdir}/bin
mv ${pkgdir}/usr/bin/gawk* ${pkgdir}/bin/
- mv ${pkgdir}/usr/bin/awk ${pkgdir}/bin/
- cd ${pkgdir}/usr/bin/
- ln -sf /bin/gawk gawk
+ ln -sf gawk ${pkgdir}/bin/awk
+ ln -sf /bin/gawk ${pkgdir}/usr/bin/
}
diff --git a/core/gawk/gawk.install b/core/gawk/gawk.install
index 95973e40a..3f7f24cfe 100644
--- a/core/gawk/gawk.install
+++ b/core/gawk/gawk.install
@@ -1,4 +1,4 @@
-infodir=/usr/share/info
+infodir=usr/share/info
filelist=(gawk.info.gz gawkinet.info.gz)
post_install() {