[arch-commits] Commit in gawk/trunk (PKGBUILD gawk.install)

Allan McRae allan at archlinux.org
Mon Jul 4 11:07:07 EDT 2011


    Date: Monday, July 4, 2011 @ 11:07:06
  Author: allan
Revision: 130241

upgpkg: gawk 4.0.0-1
upstream update

Modified:
  gawk/trunk/PKGBUILD
  gawk/trunk/gawk.install

--------------+
 PKGBUILD     |   33 +++++++++++++++++++--------------
 gawk.install |    2 +-
 2 files changed, 20 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-07-04 15:06:08 UTC (rev 130240)
+++ PKGBUILD	2011-07-04 15:07:06 UTC (rev 130241)
@@ -3,34 +3,39 @@
 # Contributor: Tom Newsom <Jeepster at 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/
 }

Modified: gawk.install
===================================================================
--- gawk.install	2011-07-04 15:06:08 UTC (rev 130240)
+++ gawk.install	2011-07-04 15:07:06 UTC (rev 130241)
@@ -1,4 +1,4 @@
-infodir=/usr/share/info
+infodir=usr/share/info
 filelist=(gawk.info.gz gawkinet.info.gz)
 
 post_install() {



More information about the arch-commits mailing list