diff options
Diffstat (limited to 'extra/nawk/PKGBUILD')
-rw-r--r-- | extra/nawk/PKGBUILD | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/extra/nawk/PKGBUILD b/extra/nawk/PKGBUILD index bdb78754e..a3b760125 100644 --- a/extra/nawk/PKGBUILD +++ b/extra/nawk/PKGBUILD @@ -1,24 +1,30 @@ -# $Id: PKGBUILD 142711 2011-11-13 14:58:31Z dreisner $ +# $Id: PKGBUILD 173726 2012-12-22 02:28:46Z dreisner $ # Maintainer: Dave Reisner <dreisner@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' 'mips64el') 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" } |