void-packages/srcpkgs/cgal/template
2017-02-06 22:48:39 -05:00

32 lines
888 B
Bash

# Template file for 'cgal'
pkgname="cgal"
version="4.9"
revision=1
build_style=cmake
short_desc="Computational Geometry Algorithms Library"
maintainer="Pierre Allegraud <pierre.allegraud@crans.org>"
license="GPL-3, LGPL-3"
homepage="http://www.cgal.org"
distfiles="https://github.com/CGAL/cgal/archive/releases/CGAL-${version}.tar.gz"
checksum="472b6154a0d62a5e78cc51772a460ffe8e8faf1f0a9639ca0054a5a7c2310f3f"
wrksrc="cgal-releases-CGAL-${version}"
nocross=yes
makedepends="boost-devel eigen gmp-devel mpfr-devel"
post_install() {
vbin ./Scripts/scripts/cgal_create_cmake_script
}
cgal-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/cgal_create_cmake_script
vmove usr/share/man/man1/cgal_create_cmake_script.1
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/CGAL
}
}