2022-03-20 13:34:07 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=gc
|
|
|
|
pkgver=8.2.0
|
2022-03-22 02:45:27 +01:00
|
|
|
pkgrel=03
|
2022-03-20 13:34:07 +01:00
|
|
|
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
|
2022-03-22 02:45:27 +01:00
|
|
|
# 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)
|
2022-03-20 13:34:07 +01:00
|
|
|
|
|
|
|
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=(2540f7356cb74f6c5b75326c6d38a066edd796361fd7d4ed26e494d9856fed8f # gc-8.2.0.tar.gz
|
2022-03-22 02:45:27 +01:00
|
|
|
894137bdfe1852c7cb6d11ef22c96db7957cb4c5abb5e93cc4b06bd5597f4bfc) # gc-missing-header.patch
|