summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/gawk/PKGBUILD46
-rw-r--r--abs/core/gawk/gawk.install2
2 files changed, 27 insertions, 21 deletions
diff --git a/abs/core/gawk/PKGBUILD b/abs/core/gawk/PKGBUILD
index 9b959fe..9bf1c91 100644
--- a/abs/core/gawk/PKGBUILD
+++ b/abs/core/gawk/PKGBUILD
@@ -1,35 +1,41 @@
-# $Id: PKGBUILD 80261 2010-05-14 07:26:51Z tpowa $
-# Maintainer: dorphell <dorphell@archlinux.org>
+# $Id: PKGBUILD 155835 2012-04-07 08:07:16Z allan $
+# Maintainer:
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=gawk
-pkgver=3.1.8
+pkgver=4.0.1
pkgrel=1
-pkgdesc="Gnu version of awk"
+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')
+source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.sig})
+md5sums=('bab2bda483e9f32be65b43b8dab39fa5'
+ '7cf4e4896509c655dd00ecd4ca9098ef')
build() {
- cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr
- make || return 1
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ ./configure --prefix=/usr --libexecdir=/usr/lib
+ make
}
-package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR=$pkgdir install
- mv $pkgdir/usr/libexec $pkgdir/usr/lib
- install -dm755 $pkgdir/bin
- mv $pkgdir/usr/bin/gawk* $pkgdir/bin/
- mv $pkgdir/usr/bin/awk $pkgdir/bin/
-
- rm $pkgdir/usr/share/info/dir
- gzip -9 $pkgdir/usr/share/info/{gawk,gawkinet}.info
+
+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/abs/core/gawk/gawk.install b/abs/core/gawk/gawk.install
index 95973e4..3f7f24c 100644
--- a/abs/core/gawk/gawk.install
+++ b/abs/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() {