opt/boehm-gc/Pkgfile

28 lines
698 B
Plaintext

# Description: Garbage collection and memory leak detection for C and C++
# URL: https://hboehm.info/gc/
# Maintainer: Tim Biermann, tbier at posteo dot de
name=boehm-gc
version=8.2.4
release=1
source=(https://github.com/ivmai/bdwgc/releases/download/v$version/gc-$version.tar.gz
https://github.com/ivmai/libatomic_ops/releases/download/v7.6.14/libatomic_ops-7.6.14.tar.gz)
build () {
cd gc-$version
ln -s ../libatomic_ops-7.6.14 libatomic_ops
./configure \
--prefix=/usr \
--enable-threads=pthreads \
--enable-static \
--enable-shared
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
install -D -m 644 doc/gc.man $PKG/usr/share/man/man3/gc.3
}