void-packages/srcpkgs/openbabel/template

31 lines
835 B
Bash

# Template file for 'openbabel'
pkgname=openbabel
version=2.4.1
revision=4
_ver=${version//./-}
wrksrc=${pkgname}-${pkgname}-${_ver}
build_style=cmake
hostmakedepends="pkg-config"
makedepends="cairo-devel libxml2-devel eigen3.2 wxWidgets-devel"
short_desc="The Open Source Chemistry Toolbox"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-2"
homepage="http://openbabel.org"
distfiles="https://github.com/openbabel/openbabel/archive/openbabel-${_ver}.tar.gz"
checksum=594c7f8a83f3502381469d643f7b185882da1dd4bc2280c16502ef980af2a776
if [ -n "${CROSS_BUILD}" ]; then
hostmakedepends+=" python"
fi
openbabel-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}