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/m4 |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'core/m4')
-rw-r--r-- | core/m4/PKGBUILD | 28 | ||||
-rw-r--r-- | core/m4/m4.install | 20 |
2 files changed, 48 insertions, 0 deletions
diff --git a/core/m4/PKGBUILD b/core/m4/PKGBUILD new file mode 100644 index 000000000..aec43611b --- /dev/null +++ b/core/m4/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 111924 2011-03-02 03:59:52Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: Andreas Radke <andyrtr@archlinux.org> + +pkgname=m4 +pkgver=1.4.16 +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=('7548ec061a1ba993790159764f522d0e') + +build() { + cd ${srcdir}/$pkgname-$pkgver + ./configure --prefix=/usr + make + make check +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + make prefix=${pkgdir}/usr install +} diff --git a/core/m4/m4.install b/core/m4/m4.install new file mode 100644 index 000000000..be4138170 --- /dev/null +++ b/core/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 +} |