# $Id: PKGBUILD 213308 2014-05-19 16:09:54Z anatolik $ # Maintainer: Daniel Isenmann # Contributor: dorphell pkgname=gc pkgver=7.4.0 pkgrel=3 pkgdesc="A garbage collector for C and C++" arch=('i686' 'x86_64') url="http://www.hboehm.info/gc/" license=('GPL') source=("http://www.hboehm.info/gc/gc_source/${pkgname}-${pkgver}.tar.gz") depends=('gcc-libs' 'libatomic_ops') md5sums=('f40d9a47c90d60791eeecb484f8df5ee') prepare() { cd ${pkgname}-${pkgver} sed -i 's#pkgdata#doc#' doc/doc.am } build() { cd ${pkgname}-${pkgver} autoreconf -fi ./configure --prefix=/usr --enable-cplusplus --disable-static make } check() { cd ${pkgname}-${pkgver} make check } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install 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" }