void-packages/srcpkgs/gc/template

35 lines
997 B
Bash

# Template file for 'gc'
pkgname=gc
version=8.2.6
revision=1
build_style=gnu-configure
# libatomic_ops is replaced by GCC atomic intrinsics
configure_args="--enable-static --with-libatomic-ops=none"
hostmakedepends="pkg-config"
short_desc="Garbage collector for C and C++"
maintainer="Ivan Maidanski <ivmai@mail.ru>"
license="MIT"
homepage="https://www.hboehm.info/gc/"
distfiles="https://github.com/ivmai/bdwgc/releases/download/v${version}/gc-${version}.tar.gz"
checksum=b9183fe49d4c44c7327992f626f8eaa1d8b14de140f243edb1c9dcff7719a7fc
post_install() {
mkdir -p ${DESTDIR}/usr/include/gc/
mv ${wrksrc}/include/* ${DESTDIR}/usr/include/gc/
mv ${DESTDIR}/usr/include/gc/extra/* ${DESTDIR}/usr/include/
rmdir ${DESTDIR}/usr/include/gc/extra
vlicense README.QUICK
}
gc-devel_package() {
depends="gc>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}