# Template file for 'qhull' pkgname=qhull version=2015.2 revision=1 _soname=7.2.0 build_style=cmake hostmakedepends="cmake" short_desc="Computes volumes, surface areas and approximations to the convex hull" maintainer="Martin Riese " license="BSD" homepage="http://www.qhull.org" distfiles="http://www.qhull.org/download/${pkgname}-${version%.*}-src-${_soname}.tgz" checksum=78b010925c3b577adc3d58278787d7df08f7c8fb02c3490e375eab91bb58a436 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 } }