diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /core/gawk |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'core/gawk')
-rw-r--r-- | core/gawk/PKGBUILD | 36 | ||||
-rw-r--r-- | core/gawk/gawk.install | 22 |
2 files changed, 58 insertions, 0 deletions
diff --git a/core/gawk/PKGBUILD b/core/gawk/PKGBUILD new file mode 100644 index 000000000..81af6681c --- /dev/null +++ b/core/gawk/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 100064 2010-11-20 03:46:49Z allan $ +# Maintainer: +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=gawk +pkgver=3.1.8 +pkgrel=2 +pkgdesc="Gnu version of awk" +arch=(i686 x86_64) +url="http://www.gnu.org/directory/GNU/gawk.html" +license=('GPL') +groups=('base') +provides=('awk') +install=gawk.install +source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz) +depends=('sh' 'glibc') +md5sums=('35937a0f83f0efe7a8c2dee635624784') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr + make +} + +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/ + cd ${pkgdir}/usr/bin/ + ln -sf /bin/gawk gawk +} diff --git a/core/gawk/gawk.install b/core/gawk/gawk.install new file mode 100644 index 000000000..95973e40a --- /dev/null +++ b/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: |