[arch-commits] Commit in qhull/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Jun 13 08:09:20 UTC 2020
Date: Saturday, June 13, 2020 @ 08:09:19
Author: arojas
Revision: 389065
Update to 2020.1
Modified:
qhull/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++-------------------
1 file changed, 9 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-13 08:01:10 UTC (rev 389064)
+++ PKGBUILD 2020-06-13 08:09:19 UTC (rev 389065)
@@ -5,9 +5,9 @@
# Contributor: Darwin Bautista <djclue917 at gmail.com>
pkgname=qhull
-pkgver=2019.1
-_pkgver=7.3.2
-pkgrel=4
+pkgver=2020.1
+_pkgver=8.0.0
+pkgrel=1
pkgdesc="A general dimension code for computing convex hulls and related structures"
arch=(x86_64)
url="http://www.qhull.org/"
@@ -14,34 +14,24 @@
license=(custom)
depends=(glibc)
makedepends=(cmake)
-source=("http://www.qhull.org/download/qhull-2019-src-$_pkgver.tgz"
- qhull-pic.patch::"https://github.com/qhull/qhull/commit/a5d0e644.patch"
+source=("http://www.qhull.org/download/qhull-${pkgver%.*}-src-$_pkgver.tgz"
qhull-no-static.patch)
-sha256sums=('2b7990558c363076261564f61b74db4d0d73b71869755108a469038c07dc43fb'
- 'edb77b3b949628eb6759920de8cd3216e179f8b54f16e357c0d4b5fe8bc06131'
+sha256sums=('1ac92a5538f61e297c72aebe4d4ffd731ceb3e6045d6d15faf1c212713798df4'
'8c9e7bda62da8f9c02429b0839610adf6e22525e0de6eb6df2a95cf3dad8b7ab')
prepare() {
- mkdir -p build
-
- cd $pkgname-$pkgver
- patch -p1 -i ../qhull-pic.patch # Build libqhullcpp with PIC
- patch -p1 -i ../qhull-no-static.patch # Disable static libraries
+ patch -d $pkgname-$pkgver -p1 -i ../qhull-no-static.patch # Disable static libraries
}
build() {
- cd build
-
- cmake ../$pkgname-$pkgver \
+ cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr
- make
+ cmake --build build
}
package() {
- cd build
+ DESTDIR="$pkgdir" cmake --install build
- make DESTDIR="$pkgdir" install
-
# Install license
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list