archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qhull / trunk / PKGBUILD
blobf61c7a0317c508398beb3f23eab47c7af61f3e17
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>
7 pkgname=qhull
8 pkgver=2020.2
9 _pkgver=8.0.2
10 pkgrel=4
11 pkgdesc="A general dimension code for computing convex hulls and related structures"
12 arch=(x86_64)
13 url="http://www.qhull.org/"
14 license=(custom)
15 depends=(glibc)
16 makedepends=(cmake)
17 source=("http://www.qhull.org/download/qhull-${pkgver%.*}-src-$_pkgver.tgz")
18 sha256sums=('b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e')
20 build() {
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"
25   cmake --build build
26   cmake --build build --target libqhull # deprecated, needed by octave
29 package() { 
30   DESTDIR="$pkgdir" cmake --install build
31   cp -P build/libqhull.so* "$pkgdir"/usr/lib/
33   # Install license
34   install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING.txt -t "$pkgdir"/usr/share/licenses/$pkgname/