[arch-commits] Commit in qhull/repos (3 files)
Antonio Rojas
arojas at archlinux.org
Sat Jun 13 08:09:30 UTC 2020
Date: Saturday, June 13, 2020 @ 08:09:29
Author: arojas
Revision: 389066
archrelease: copy trunk to staging-x86_64
Added:
qhull/repos/staging-x86_64/
qhull/repos/staging-x86_64/PKGBUILD
(from rev 389065, qhull/trunk/PKGBUILD)
qhull/repos/staging-x86_64/qhull-no-static.patch
(from rev 389065, qhull/trunk/qhull-no-static.patch)
-----------------------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
qhull-no-static.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+)
Copied: qhull/repos/staging-x86_64/PKGBUILD (from rev 389065, qhull/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-06-13 08:09:29 UTC (rev 389066)
@@ -0,0 +1,37 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Ronald van Haren <ronald at archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+# Contributor: Jason Taylor <jftaylor21 at gmail.com>
+# Contributor: Darwin Bautista <djclue917 at gmail.com>
+
+pkgname=qhull
+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/"
+license=(custom)
+depends=(glibc)
+makedepends=(cmake)
+source=("http://www.qhull.org/download/qhull-${pkgver%.*}-src-$_pkgver.tgz"
+ qhull-no-static.patch)
+sha256sums=('1ac92a5538f61e297c72aebe4d4ffd731ceb3e6045d6d15faf1c212713798df4'
+ '8c9e7bda62da8f9c02429b0839610adf6e22525e0de6eb6df2a95cf3dad8b7ab')
+
+prepare() {
+ patch -d $pkgname-$pkgver -p1 -i ../qhull-no-static.patch # Disable static libraries
+}
+
+build() {
+ cmake -B build -S $pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+
+ # Install license
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
Copied: qhull/repos/staging-x86_64/qhull-no-static.patch (from rev 389065, qhull/trunk/qhull-no-static.patch)
===================================================================
--- staging-x86_64/qhull-no-static.patch (rev 0)
+++ staging-x86_64/qhull-no-static.patch 2020-06-13 08:09:29 UTC (rev 389066)
@@ -0,0 +1,42 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 09aa249..f1f4b50 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -353,7 +353,7 @@ endif()
+
+ set(
+ qhull_TARGETS_INSTALL
+- ${qhull_CPP} ${qhull_STATIC} ${qhull_STATICR} ${qhull_SHAREDR}
++ ${qhull_CPP} ${qhull_SHAREDR}
+ qhull rbox qconvex qdelaunay qvoronoi qhalf
+ ${qhull_SHARED} ${qhull_SHAREDP} # Deprecated, use qhull_r instead
+ )
+@@ -485,22 +485,22 @@ set(qvoronoi_SOURCES src/qvoronoi/qvoronoi.c)
+ set(qhalf_SOURCES src/qhalf/qhalf.c)
+
+ add_executable(qhull ${qhull_SOURCES})
+-target_link_libraries(qhull ${qhull_STATICR})
++target_link_libraries(qhull ${qhull_SHAREDR})
+
+ add_executable(rbox ${rbox_SOURCES})
+-target_link_libraries(rbox ${qhull_STATIC})
++target_link_libraries(rbox ${qhull_SHARED})
+
+ add_executable(qconvex ${qconvex_SOURCES})
+-target_link_libraries(qconvex ${qhull_STATIC})
++target_link_libraries(qconvex ${qhull_SHARED})
+
+ add_executable(qdelaunay ${qdelaunay_SOURCES})
+-target_link_libraries(qdelaunay ${qhull_STATIC})
++target_link_libraries(qdelaunay ${qhull_SHARED})
+
+ add_executable(qvoronoi ${qvoronoi_SOURCES})
+-target_link_libraries(qvoronoi ${qhull_STATIC})
++target_link_libraries(qvoronoi ${qhull_SHARED})
+
+ add_executable(qhalf ${qhalf_SOURCES})
+-target_link_libraries(qhalf ${qhull_STATIC})
++target_link_libraries(qhalf ${qhull_SHARED})
+
+ # ---------------------------------------
+ # Define options for linking to qhull_SHAREDR or qhull_SHARED
More information about the arch-commits
mailing list