cruxports/qhull/Pkgfile
2022-02-05 15:39:19 -05:00

22 lines
603 B
Plaintext

# Description: general code for computing convex hulls and related structures
# URL: https://www.qhull.org/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on:
name=qhull
version=2020.2-8.0.2
release=1
source=(http://www.qhull.org/download/$name-${version:0:4}-src-${version##*-}.tgz)
build() {
cmake -B build -S $name-${version%%-*} -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
cmake --build build --target=libqhull # deprecated, but needed by octave
DESTDIR=$PKG cmake --install build
rm -rf $PKG/usr/share/doc/
cp -P build/libqhull.so* $PKG/usr/lib
}