From b51e7f9e5fa146abb9662b8f09c062e8bb55a7dd Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Mon, 19 Jan 2009 10:38:23 -0600
Subject: adding m4, was in chroot-devel

---
 abs/core-testing/m4/PKGBUILD   | 24 ++++++++++++++++++++++++
 abs/core-testing/m4/m4.install | 20 ++++++++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 abs/core-testing/m4/PKGBUILD
 create mode 100644 abs/core-testing/m4/m4.install

diff --git a/abs/core-testing/m4/PKGBUILD b/abs/core-testing/m4/PKGBUILD
new file mode 100644
index 0000000..b0738c8
--- /dev/null
+++ b/abs/core-testing/m4/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD 17049 2008-10-24 17:18:43Z andyrtr $
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=m4
+pkgver=1.4.12
+pkgrel=1
+pkgdesc="m4 macro processor"
+arch=(i686 x86_64)
+license=('GPL')
+url="http://www.gnu.org/software/m4"
+install=m4.install
+groups=('base-devel')
+depends=('glibc' 'bash' 'texinfo')
+source=(ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.gz)
+md5sums=('0499a958a561781b125c740f18061ea8')
+
+build() {
+  cd ${srcdir}/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make || return 1
+  make prefix=${pkgdir}/usr install || return 1
+
+  rm -f ${pkgdir}/usr/share/info/dir
+}
diff --git a/abs/core-testing/m4/m4.install b/abs/core-testing/m4/m4.install
new file mode 100644
index 0000000..7954ba9
--- /dev/null
+++ b/abs/core-testing/m4/m4.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(m4.info m4.info-1 m4.info-2)
+
+post_install() {
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:
-- 
cgit v0.12

