jobcore/gc/PKGBUILD
2024-02-05 01:52:52 +02:00

54 lines
1.7 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.6
pkgrel=01
pkgdesc="A garbage collector for C and C++"
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
https://www.hboehm.info/gc/license.txt)
# 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"
install -Dm644 ../license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('LicenseRef-GC' 'MIT')
sha256sums=(b9183fe49d4c44c7327992f626f8eaa1d8b14de140f243edb1c9dcff7719a7fc # gc-8.2.6.tar.gz
d84e4948951c3571fdf05b934db7c94bbee25f594c1901b1baf835589ce5f2dc) # license.txt
## 0f1748de8aabaf669f50985475c8c88b0c6de07de13c07d06e547bf3f7b922b5 gc-8.2.6-01-x86_64.pkg.tar.lz