core/gc/PKGBUILD
AlmAck cb5f376c37 gc 7.4.2
btrfs-progs 4.0.1
gdbm 1.11
linux-api-headers 4.0
mkinitcpio-busybox 1.23.2
rpcbind 0.2.3
2015-06-07 22:43:58 +02:00

47 lines
1.1 KiB
Bash

# Maintainer: Francesco Marinucci <franzmari[at]chakra-project[dot]it>
# Maintainer: Daniel Isenmann <daniel [at] archlinux.org>
# Contributor: dorphell <dorphell@gmx.net>
pkgname=gc
pkgver=7.4.2
pkgrel=1
pkgdesc="A garbage collector for C and C++"
arch=('x86_64')
url="http://www.hboehm.info/gc/"
license=('GPL')
depends=('gcc-libs' 'libatomic_ops')
source=("http://www.hboehm.info/gc/gc_source/${pkgname}-${pkgver}.tar.gz"
noelision.patch)
md5sums=('12c05fd2811d989341d8c6d81f66af87'
'0be354bf60cc18363dc4c1601697717b')
prepare() {
cd ${pkgname}-${pkgver}
# https://github.com/ivmai/bdwgc/pull/51
patch -p1 -i ../noelision.patch
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"
}