38 lines
1 KiB
Bash
38 lines
1 KiB
Bash
# Template file for 'qhull'
|
|
pkgname=qhull
|
|
version=2019.1
|
|
revision=1
|
|
build_style=cmake
|
|
short_desc="Computes volumes, surface areas and approximations to the convex hull"
|
|
maintainer="Martin Riese <grauehaare@gmx.de>"
|
|
license="BSD"
|
|
homepage="http://www.qhull.org"
|
|
distfiles="https://github.com/qhull/qhull/archive/$version.tar.gz"
|
|
checksum=cf7235b76244595a86b9407b906e3259502b744528318f2178155e5899d6cf9f
|
|
|
|
post_install() {
|
|
install -Dm644 ${FILESDIR}/qhull.pc ${DESTDIR}/usr/lib/pkgconfig/qhull.pc
|
|
sed -i "s|@VERSION@|${version}|" ${DESTDIR}/usr/lib/pkgconfig/qhull.pc
|
|
# convenience links for backwards compatibility
|
|
ln -sf libqhull ${DESTDIR}/usr/include/qhull
|
|
ln -sf libqhull.h ${DESTDIR}/usr/include/qhull/qhull.h
|
|
}
|
|
|
|
libqhull_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
vlicense COPYING.txt
|
|
}
|
|
}
|
|
|
|
libqhull-devel_package() {
|
|
depends="libqhull>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|