From fad439a197c7e1c11e0fe5681bbbb3c04142a5fe Mon Sep 17 00:00:00 2001 From: Cecil Date: Mon, 4 Jul 2011 20:12:54 -0700 Subject: m4:Bumped to latest. --- abs/core/m4/m4/PKGBUILD | 28 ++++++++++++++++++++++++++++ abs/core/m4/m4/m4.install | 20 ++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 abs/core/m4/m4/PKGBUILD create mode 100644 abs/core/m4/m4/m4.install diff --git a/abs/core/m4/m4/PKGBUILD b/abs/core/m4/m4/PKGBUILD new file mode 100644 index 0000000..9e0a802 --- /dev/null +++ b/abs/core/m4/m4/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 90203 2010-09-09 05:37:32Z allan $ +# Maintainer: Allan McRae +# Contributor: Andreas Radke + +pkgname=m4 +pkgver=1.4.15 +pkgrel=1 +pkgdesc="The GNU macro processor" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/m4" +license=('GPL3') +groups=('base-devel') +depends=('glibc' 'bash') +install=m4.install +source=(ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.xz) +md5sums=('1caf3410e6590f493834dc99ee04d027') + +build() { + cd ${srcdir}/$pkgname-$pkgver + ./configure --prefix=/usr + make + make check +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + make prefix=${pkgdir}/usr install +} diff --git a/abs/core/m4/m4/m4.install b/abs/core/m4/m4/m4.install new file mode 100644 index 0000000..88a9606 --- /dev/null +++ b/abs/core/m4/m4/m4.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(m4.info m4.info-1 m4.info-2) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $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.gz $infodir/dir 2> /dev/null + done +} -- cgit v0.12