jobcore/gc/PKGBUILD

51 lines
1.4 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gc
pkgver=8.2.2
pkgrel=01
pkgdesc="A garbage collector for C and C++"
arch=('x86_64')
groups=( jobbot )
url="https://www.hboehm.info/gc/"
depends=('gcc-libs')
source=(https://github.com/ivmai/bdwgc/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
# gc-missing-header.patch::https://patch-diff.githubusercontent.com/raw/ivmai/bdwgc/pull/389.patch)
# gc-missing-header.patch::https://github.com/ivmai/bdwgc/commit/c876dc2b.patch)
#prepare() {
# cd $pkgname-$pkgver
# patch -p1 < ../gc-missing-header.patch # Install missing header
# ./autogen.sh
#}
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr --enable-cplusplus --disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd ${pkgname}-${pkgver}
make check
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
sed 's|GC_MALLOC 1L|gc 3|g' doc/gc.man |
install -Dm644 /dev/stdin "${pkgdir}/usr/share/man/man3/gc.3"
}
#---- license gpg-key sha256sums ----
license=('GPL')
sha256sums=(f30107bcb062e0920a790ffffa56d9512348546859364c23a14be264b38836a0) # gc-8.2.2.tar.gz