[arch-commits] Commit in nawk/trunk (PKGBUILD)

Dave Reisner dreisner at archlinux.org
Sat Dec 22 02:28:31 UTC 2012


    Date: Friday, December 21, 2012 @ 21:28:31
  Author: dreisner
Revision: 173725

upgpkg: nawk 20121220-1

Modified:
  nawk/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-12-21 23:33:14 UTC (rev 173724)
+++ PKGBUILD	2012-12-22 02:28:31 UTC (rev 173725)
@@ -2,23 +2,29 @@
 # Maintainer: Dave Reisner <dreisner at archlinux.org>
 
 pkgname=nawk
-pkgver=20110810
-pkgrel=3
+pkgver=20121220
+pkgrel=1
 pkgdesc="The one, true implementation of AWK"
 url="http://cm.bell-labs.com/who/bwk/"
 license=('MIT')
 arch=('i686' 'x86_64')
 options=('!makeflags')
 depends=('glibc')
-source=("http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"
+source=("$pkgname-$pkgver.tar.gz::http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"
         'manpage-naming.patch')
-md5sums=('a7062ecade93dc4cb39190e48db9a51d'
+md5sums=('b74ca7f8f4284fc82ccee6b4e34531d8'
          '8486d387a51fe3b3c9875c4151ad92b4')
 
 build() {
+  # awk -> nawk
   patch -Np1 < manpage-naming.patch
+
+  # create license
   sed -n '/Copyright/,/THIS SOFTWARE\./p' README > LICENSE
 
+  # fix build
+  sed -i '/YACC = yacc -d -S/ s|^|#|' makefile
+
   make "CPPFLAGS=-DHAS_ISBLANK" "LDFLAGS=$LDFLAGS" "CFLAGS=$CFLAGS"
 }
 




More information about the arch-commits mailing list