opt/boehm-gc/Pkgfile
2018-09-09 03:07:44 +02:00

30 lines
756 B
Plaintext

# Description: Garbage collection and memory leak detection for C and C++
# URL: http://hboehm.info/gc/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Han Boetes, han at mijncomputer dot dl
name=boehm-gc
version=7.6.4
release=1
source=(http://hboehm.info/gc/gc_source/gc-${version}.tar.gz \
https://github.com/ivmai/libatomic_ops/releases/download/v7.6.6/libatomic_ops-7.6.6.tar.gz)
build () {
cd gc-$version
ln -s ../libatomic_ops-7.6.6 libatomic_ops
./configure \
--prefix=/usr \
--enable-threads=pthreads \
--enable-static \
--enable-shared
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share
install -D -m 644 doc/gc.man $PKG/usr/share/man/man3/gc.3
}