opt/boehm-gc/Pkgfile
2016-03-08 00:16:52 +01:00

30 lines
777 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.4.2
release=1
source=(http://www.hboehm.info/gc/gc_source/gc-${version}.tar.gz
https://github.com/ivmai/libatomic_ops/archive/libatomic_ops-${version//\./_}.tar.gz)
build () {
cd gc-$version
ln -s ../libatomic_ops-libatomic_ops-${version//\./_} 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
}