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

Allan McRae allan at archlinux.org
Sat Mar 21 01:16:23 UTC 2009


    Date: Friday, March 20, 2009 @ 21:16:23
  Author: allan
Revision: 30595

upgpkg: gawk 3.1.6-3
    Remove mawk replace (FS#12430), deal with info files

Modified:
  gawk/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-03-21 01:10:09 UTC (rev 30594)
+++ PKGBUILD	2009-03-21 01:16:23 UTC (rev 30595)
@@ -1,31 +1,31 @@
 # $Id$
 # Maintainer: dorphell <dorphell at archlinux.org>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+
 pkgname=gawk
 pkgver=3.1.6
-pkgrel=2
+pkgrel=3
 pkgdesc="Gnu version of awk"
 arch=(i686 x86_64)
 url="http://www.gnu.org/directory/GNU/gawk.html"
 license=('GPL')
 groups=('base')
 provides=('awk')
-#replaces=('mawk')
+install=gawk.install
 source=(ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
 depends=('bash' 'glibc')
 md5sums=('b237751aef53c9ead9644e376bc53386')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
+  cd $srcdir/$pkgname-$pkgver
   ./configure --prefix=/usr
   make || return 1
-  make DESTDIR=$startdir/pkg install
-  mv $startdir/pkg/usr/libexec $startdir/pkg/usr/lib
-  mkdir $startdir/pkg/bin
-  mv $startdir/pkg/usr/bin/gawk* $startdir/pkg/bin/
-  mv $startdir/pkg/usr/bin/awk $startdir/pkg/bin/
-  # don't use hardlinks to manpages, it messes up our compression stuff
-  rm $startdir/pkg/usr/share/man/man1/pgawk.1
-  ln -s gawk.1 $startdir/pkg/usr/share/man/man1/pgawk.1
-  ln -s gawk.1 $startdir/pkg/usr/share/man/man1/awk.1
+  make DESTDIR=$pkgdir install
+  mv $pkgdir/usr/libexec $pkgdir/usr/lib
+  install -dm755 $pkgdir/bin
+  mv $pkgdir/usr/bin/gawk* $pkgdir/bin/
+  mv $pkgdir/usr/bin/awk $pkgdir/bin/
+  
+  rm $pkgdir/usr/share/info/dir
+  gzip -9 $pkgdir/usr/share/info/{gawk,gawkinet}.info
 }




More information about the arch-commits mailing list