# Maintainer: Kyle Keen <keenerd@gmail.com>
# Maintainer: Bruno Pagani <archange@archlinux.org>
# Contributor: Dmitriy Morozov <foxcub>
pkgname=cgal
pkgver=5.6.1
pkgrel=1
pkgdesc="Computational Geometry Algorithms Library"
arch=(any)
url="https://www.cgal.org"
license=(GPL LGPL)
depends=(boost eigen gmp mpfr)
makedepends=(cmake)
source=(https://github.com/CGAL/cgal/releases/download/v${pkgver}/CGAL-${pkgver}.tar.xz)
# https://github.com/CGAL/cgal/releases/download/v${pkgver}/sha256sum.txt
sha256sums=('cdb15e7ee31e0663589d3107a79988a37b7b1719df3d24f2058545d1bcdd5837')
build() {
cmake -B build -S CGAL-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr
make -C build
}
package() {
make -C build DESTDIR="${pkgdir}" install
rm -r "${pkgdir}"/usr/share
}