diff options
Diffstat (limited to 'extra/nawk/PKGBUILD')
-rw-r--r-- | extra/nawk/PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/extra/nawk/PKGBUILD b/extra/nawk/PKGBUILD new file mode 100644 index 000000000..f930b1800 --- /dev/null +++ b/extra/nawk/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 142698 2011-11-13 02:24:31Z dreisner $ +# Maintainer: Dave Reisner <dreisner@archlinux.org> + +pkgname=nawk +pkgver=20110810 +pkgrel=2 +pkgdesc="The one, true implementation of the AWK" +url="http://cm.bell-labs.com/who/bwk/" +license=('MIT') +arch=('i686' 'x86_64') +options=('!makeflags') +depends=('glibc') +provides=('awk') +source=("http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz" + 'manpage-naming.patch') +md5sums=('a7062ecade93dc4cb39190e48db9a51d' + '8486d387a51fe3b3c9875c4151ad92b4') + +build() { + patch -Np1 < manpage-naming.patch + sed -n '/Copyright/,/THIS SOFTWARE\./p' README > LICENSE + + make "CPPFLAGS=-DHAS_ISBLANK" "LDFLAGS=$LDFLAGS" "CFLAGS=$CFLAGS" +} + +package() { + install -Dm755 a.out "$pkgdir/usr/bin/nawk" + install -Dm644 awk.1 "$pkgdir/usr/share/man/man1/nawk.1" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/nawk/LICENSE" +} |