diff options
author | root <root@rshg054.dnsready.net> | 2011-11-03 23:14:47 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-03 23:14:47 +0000 |
commit | b625511a28fd8401f524474b5339e75328595150 (patch) | |
tree | 1daf0e94a58707bedb1a8ef5c3e98ce2cc9d7fa2 /testing/gawk | |
parent | 6c10ff06abb7ca3a4db4c73624f73aafdd3b2e63 (diff) |
Thu Nov 3 23:14:47 UTC 2011
Diffstat (limited to 'testing/gawk')
-rw-r--r-- | testing/gawk/PKGBUILD | 41 | ||||
-rw-r--r-- | testing/gawk/gawk.install | 22 |
2 files changed, 63 insertions, 0 deletions
diff --git a/testing/gawk/PKGBUILD b/testing/gawk/PKGBUILD new file mode 100644 index 000000000..eeb4803c0 --- /dev/null +++ b/testing/gawk/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 141716 2011-11-02 12:57:23Z tpowa $ +# Maintainer: +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +pkgname=gawk +pkgver=4.0.0 +pkgrel=2 +pkgdesc="GNU version of awk" +arch=('i686' 'x86_64') +url="http://www.gnu.org/directory/GNU/gawk.html" +license=('GPL') +groups=('base') +depends=('sh' 'glibc') +provides=('awk') +install=gawk.install +source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz) +md5sums=('51e417b71287629940051e6f652c6492') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + ./configure --prefix=/usr --libexecdir=/usr/lib + make +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + + make -j1 check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + + install -dm755 ${pkgdir}/bin + mv ${pkgdir}/usr/bin/gawk* ${pkgdir}/bin/ + ln -sf gawk ${pkgdir}/bin/awk + ln -sf /bin/gawk ${pkgdir}/usr/bin/ +} diff --git a/testing/gawk/gawk.install b/testing/gawk/gawk.install new file mode 100644 index 000000000..3f7f24cfe --- /dev/null +++ b/testing/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: |