summaryrefslogtreecommitdiff
path: root/testing/gc/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-20 00:04:49 +0000
committerroot <root@rshg054.dnsready.net>2012-05-20 00:04:49 +0000
commitaad2fba0fc475162b566f1577d8e7a020cd9e80d (patch)
treef289660c47a6cbbf3b68078aeb56f5c19e30a662 /testing/gc/PKGBUILD
parent5d334c7470b5851fbacd4545c8ee0ea676a21ccc (diff)
Sun May 20 00:04:49 UTC 2012
Diffstat (limited to 'testing/gc/PKGBUILD')
-rw-r--r--testing/gc/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/gc/PKGBUILD b/testing/gc/PKGBUILD
new file mode 100644
index 000000000..43dd94dbc
--- /dev/null
+++ b/testing/gc/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 159218 2012-05-18 10:37:19Z jgc $
+# Maintainer: Daniel Isenmann <daniel [at] archlinux.org>
+# Contributor: dorphell <dorphell@gmx.net>
+
+pkgname=gc
+pkgver=7.2
+pkgrel=1
+pkgdesc="A garbage collector for C and C++"
+arch=('i686' 'x86_64')
+url="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
+license=('GPL')
+source=("http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/${pkgname}-${pkgver}.tar.gz")
+depends=('gcc-libs')
+options=('!libtool')
+md5sums=('d17aecedef3d73e75387fb63558fa4eb')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --enable-cplusplus
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}/usr/share/gc"
+ install -m755 -d "${pkgdir}/usr/share/doc/gc"
+ install -m644 doc/README{,.{changes,contributors,environment,linux}} \
+ "${pkgdir}/usr/share/doc/gc/"
+
+ sed -i -e 's/GC_MALLOC 1L/gc 3/' doc/gc.man
+ install -m755 -d "${pkgdir}/usr/share/man/man3"
+ install -m644 doc/gc.man "${pkgdir}/usr/share/man/man3/gc.3"
+}