pkgname=gc pkgver=8.2.8 pkgrel=1 pkgdesc="A garbage collector for C and C++" arch=('x86_64') url="https://www.hboehm.info/gc" license=('LicenseRef-GC' 'MIT') depends=('gcc-libs') source=(https://github.com/ivmai/bdwgc/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(7649020621cb26325e1fb5c8742590d92fb48ce5c259b502faf7d9fb5dabb160) build() { cd ${pkgname}-${pkgver} local configure_args=( --enable-cplusplus --disable-static --docdir=/usr/share/doc/${pkgname}-${pkgver} ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -v -m644 doc/gc.man ${pkgdir}/usr/share/man/man3/gc_malloc.3 }