[arch-commits] Commit in nawk/trunk (PKGBUILD manpage-naming.patch)

Dave Reisner dreisner at archlinux.org
Sat Nov 12 21:24:17 EST 2011


    Date: Saturday, November 12, 2011 @ 21:24:17
  Author: dreisner
Revision: 142697

upgpkg: nawk 20110810-2

- add our own build flags
- patch manpage to refer to nawk instead of awk

Added:
  nawk/trunk/manpage-naming.patch
Modified:
  nawk/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   12 ++++++++----
 manpage-naming.patch |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-13 02:03:02 UTC (rev 142696)
+++ PKGBUILD	2011-11-13 02:24:17 UTC (rev 142697)
@@ -3,7 +3,7 @@
 
 pkgname=nawk
 pkgver=20110810
-pkgrel=1
+pkgrel=2
 pkgdesc="The one, true implementation of the AWK"
 url="http://cm.bell-labs.com/who/bwk/"
 license=('MIT')
@@ -11,12 +11,16 @@
 options=('!makeflags')
 depends=('glibc')
 provides=('awk')
-source=("http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz")
-md5sums=('a7062ecade93dc4cb39190e48db9a51d')
+source=("http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"
+        'manpage-naming.patch')
+md5sums=('a7062ecade93dc4cb39190e48db9a51d'
+         '8486d387a51fe3b3c9875c4151ad92b4')
 
 build() {
-  CPPFLAGS=-DHAS_ISBLANK make
+  patch -Np1 < manpage-naming.patch
   sed -n '/Copyright/,/THIS SOFTWARE\./p' README > LICENSE
+
+  make "CPPFLAGS=-DHAS_ISBLANK" "LDFLAGS=$LDFLAGS" "CFLAGS=$CFLAGS"
 }
 
 package() {

Added: manpage-naming.patch
===================================================================
--- manpage-naming.patch	                        (rev 0)
+++ manpage-naming.patch	2011-11-13 02:24:17 UTC (rev 142697)
@@ -0,0 +1,46 @@
+diff -uNr ./nawk-20100523.orig/awk.1 nawk-20100523/awk.1
+--- ./nawk-20100523.orig/awk.1	2007-03-31 16:56:19.000000000 -0400
++++ nawk-20100523/awk.1	2010-09-20 21:49:16.840069318 -0400
+@@ -7,13 +7,11 @@
+ .fi
+ .ft 1
+ ..
+-awk
+-.TH AWK 1
+-.CT 1 files prog_other
++.TH NAWK 1
+ .SH NAME
+-awk \- pattern-directed scanning and processing language
++nawk \- pattern-directed scanning and processing language
+ .SH SYNOPSIS
+-.B awk
++.B nawk
+ [
+ .BI \-F
+ .I fs
+@@ -32,7 +30,7 @@
+ .I file ...
+ ]
+ .SH DESCRIPTION
+-.I Awk
++.I Nawk
+ scans each input
+ .I file
+ for lines that match any of a set of patterns specified literally in
+@@ -198,7 +196,6 @@
+ .BR atan2 
+ are built in.
+ Other built-in functions:
+-.TF length
+ .TP
+ .B length
+ the length of its argument
+@@ -407,7 +404,6 @@
+ do not combine with other patterns.
+ .PP
+ Variable names with special meanings:
+-.TF FILENAME
+ .TP
+ .B CONVFMT
+ conversion format used when converting numbers
+



More information about the arch-commits mailing list