[arch-commits] Commit in qhull/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat May 16 12:28:53 UTC 2020


    Date: Saturday, May 16, 2020 @ 12:28:52
  Author: felixonmars
Revision: 384539

archrelease: copy trunk to staging-x86_64

Added:
  qhull/repos/staging-x86_64/
  qhull/repos/staging-x86_64/PKGBUILD
    (from rev 384537, qhull/trunk/PKGBUILD)
  qhull/repos/staging-x86_64/qhull-no-static.patch
    (from rev 384538, qhull/trunk/qhull-no-static.patch)

-----------------------+
 PKGBUILD              |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 qhull-no-static.patch |   42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)

Copied: qhull/repos/staging-x86_64/PKGBUILD (from rev 384537, qhull/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-16 12:28:52 UTC (rev 384539)
@@ -0,0 +1,47 @@
+# 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=2019.1
+_pkgver=7.3.2
+pkgrel=4
+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-2019-src-$_pkgver.tgz"
+         qhull-pic.patch::"https://github.com/qhull/qhull/commit/a5d0e644.patch"
+         qhull-no-static.patch)
+sha256sums=('2b7990558c363076261564f61b74db4d0d73b71869755108a469038c07dc43fb'
+            'edb77b3b949628eb6759920de8cd3216e179f8b54f16e357c0d4b5fe8bc06131'
+            '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
+}
+
+build() {
+  cd build
+
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() { 
+  cd build
+
+  make DESTDIR="$pkgdir" install
+
+  # 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 384538, qhull/trunk/qhull-no-static.patch)
===================================================================
--- staging-x86_64/qhull-no-static.patch	                        (rev 0)
+++ staging-x86_64/qhull-no-static.patch	2020-05-16 12:28:52 UTC (rev 384539)
@@ -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