void-packages/srcpkgs/gc/template

35 lines
986 B
Bash

# Template file for 'gc'
pkgname=gc
version=8.2.2
revision=1
build_style=gnu-configure
# libatomic_ops is replaced by C11 atomic
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=f30107bcb062e0920a790ffffa56d9512348546859364c23a14be264b38836a0
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
}
}