diff options
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/gawk/PKGBUILD | 38 | ||||
-rw-r--r-- | abs/core/gawk/gawk.install | 22 |
2 files changed, 43 insertions, 17 deletions
diff --git a/abs/core/gawk/PKGBUILD b/abs/core/gawk/PKGBUILD index 976a574..9b959fe 100644 --- a/abs/core/gawk/PKGBUILD +++ b/abs/core/gawk/PKGBUILD @@ -1,31 +1,35 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# $Id: PKGBUILD 80261 2010-05-14 07:26:51Z tpowa $ # Maintainer: dorphell <dorphell@archlinux.org> # Contributor: Tom Newsom <Jeepster@gmx.co.uk> + pkgname=gawk -pkgver=3.1.6 -pkgrel=11 +pkgver=3.1.8 +pkgrel=1 pkgdesc="Gnu version of awk" -arch=(i686 x86_64) +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') +depends=('sh' 'glibc') +md5sums=('35937a0f83f0efe7a8c2dee635624784') 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 } +package() { + cd $srcdir/$pkgname-$pkgver + 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 +} + diff --git a/abs/core/gawk/gawk.install b/abs/core/gawk/gawk.install new file mode 100644 index 0000000..95973e4 --- /dev/null +++ b/abs/core/gawk/gawk.install @@ -0,0 +1,22 @@ +infodir=/usr/share/info +filelist=(gawk.info.gz gawkinet.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |