35 lines
986 B
Bash
35 lines
986 B
Bash
# Template file for 'gc'
|
|
pkgname=gc
|
|
version=8.2.4
|
|
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=3d0d3cdbe077403d3106bb40f0cbb563413d6efdbb2a7e1cd6886595dec48fc2
|
|
|
|
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
|
|
}
|
|
}
|