summaryrefslogtreecommitdiff
path: root/extra/gc/PKGBUILD
blob: 16f608ea197605301abdcd0365d652d386c8f396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 123615 2011-05-11 19:36:33Z jgc $
# Maintainer: Daniel Isenmann <daniel [at] archlinux.org>
# Contributor: dorphell <dorphell@gmx.net>
pkgname=gc
pkgver=7.1
pkgrel=3
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=('2ff9924c7249ef7f736ecfe6f08f3f9b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --enable-cplusplus
  make
  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"
}