1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Ronald van Haren <ronald@archlinux.org>
3 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
4 # Contributor: Jason Taylor <jftaylor21@gmail.com>
5 # Contributor: Darwin Bautista <djclue917@gmail.com>
11 pkgdesc="A general dimension code for computing convex hulls and related structures"
13 url="http://www.qhull.org/"
17 source=("http://www.qhull.org/download/qhull-${pkgver%.*}-src-$_pkgver.tgz")
18 sha256sums=('b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e')
21 cmake -B build -S $pkgname-$pkgver \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 -DCMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects" \
24 -DCMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects"
26 cmake --build build --target libqhull # deprecated, needed by octave
30 DESTDIR="$pkgdir" cmake --install build
31 cp -P build/libqhull.so* "$pkgdir"/usr/lib/
34 install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING.txt -t "$pkgdir"/usr/share/licenses/$pkgname/