summaryrefslogtreecommitdiffstats
path: root/abs/core/m4
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/m4')
-rw-r--r--abs/core/m4/m4/PKGBUILD28
-rw-r--r--abs/core/m4/m4/m4.install20
2 files changed, 48 insertions, 0 deletions
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 <allan@archlinux.org>
+# Contributor: Andreas Radke <andyrtr@archlinux.org>
+
+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
+}