testing/cgal: upgrade to 5.4

This commit is contained in:
Marian Buschsieweke 2022-04-05 09:44:56 +02:00 committed by alice
parent bdc75f5081
commit 606f0c811d

View File

@ -1,29 +1,41 @@
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=cgal
pkgver=4.14
pkgrel=6
pkgver=5.4
pkgrel=0
pkgdesc="Efficient and reliable geometric algorithms as C++ library"
url="https://www.cgal.org/"
arch="all"
# lib is header-only as of version 5.4
arch="noarch"
license="GPL-3.0-or-later custom" # Dual licensed under GPL-3.0+ and commercial
subpackages="$pkgname-dev $pkgname-doc"
makedepends="mpfr-dev gmp-dev mesa-dev glu-dev boost-dev cmake zlib-dev"
source="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$pkgver/CGAL-$pkgver.tar.xz"
makedepends="mpfr-dev gmp-dev mesa-dev glu-dev boost-dev cmake zlib-dev ninja"
source="$pkgname-$pkgver.tar.xz::https://github.com/CGAL/cgal/releases/download/v$pkgver/CGAL-$pkgver.tar.xz"
builddir="$srcdir/CGAL-$pkgver"
# Citing from.https://github.com/CGAL/cgal/wiki/Testing#test-suite-directory
# Citing from https://github.com/CGAL/cgal/wiki/Testing#test-suite-directory
# > The test/ directory is not part of external releases.
options="!check"
build() {
mkdir -p build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
make
cmake -B build \
-G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
package() {
cd build
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" cmake --install build
install -t "$pkgdir"/usr/share/licenses/$pkgname -Dm644 LICENSE*
}
sha512sums="1f22da098a136c26fd51c7ac401212865dce7cc5110ca6a083ef6f09ead5c03a002bfd16752cb298427b84bd5b4900b52c6514f97ccd0e199ffb28e9fe640c43 CGAL-4.14.tar.xz"
dev() {
default_dev
amove usr/bin/cgal_create_CMakeLists
amove usr/bin/cgal_create_cmake_script
amove usr/bin/cgal_make_macosx_app
}
sha512sums="
ecaa7a130365e066c098f500751e5be89d908ed7e3c4ea9b50fbe2b1e13f4dd2bca0319157d0de8ec2eb7847c88b9190f369ff97c33c0c5e326f2d470104386d cgal-5.4.tar.xz
"