[arch-commits] Commit in qhull/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Jun 29 07:08:09 UTC 2019
Date: Saturday, June 29, 2019 @ 07:08:08
Author: arojas
Revision: 357035
Update to 2019.1
Modified:
qhull/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-06-29 06:59:37 UTC (rev 357034)
+++ PKGBUILD 2019-06-29 07:08:08 UTC (rev 357035)
@@ -5,8 +5,8 @@
# Contributor: Darwin Bautista <djclue917 at gmail.com>
pkgname=qhull
-pkgver=2015.2
-pkgrel=3
+pkgver=2019.1
+pkgrel=1
pkgdesc="A general dimension code for computing convex hulls and related structures"
arch=(x86_64)
url="http://www.qhull.org/"
@@ -13,27 +13,26 @@
license=(custom)
depends=(glibc)
makedepends=(cmake)
-source=("http://www.qhull.org/download/qhull-2015-src-7.2.0.tgz")
-sha256sums=('78b010925c3b577adc3d58278787d7df08f7c8fb02c3490e375eab91bb58a436')
+source=("http://www.qhull.org/download/qhull-2019-src-7.3.2.tgz")
+sha256sums=('2b7990558c363076261564f61b74db4d0d73b71869755108a469038c07dc43fb')
+prepare() {
+ mkdir -p build
+}
+
build() {
- cd $pkgname-$pkgver
+ cd build
- if [ "${CARCH}" = "x86_64" ]; then
- EXTRAOPTS="-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
- fi
-
- mkdir srcbuild
- cd srcbuild
- cmake -DCMAKE_INSTALL_PREFIX=/usr $EXTRAOPTS ..
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
- cd $pkgname-$pkgver/srcbuild
+ cd build
make DESTDIR="$pkgdir" install
# Install license
- install -Dm644 "$srcdir/$pkgname-$pkgver/COPYING.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list