[arch-commits] Commit in qhull/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 21:34:36 UTC 2018


    Date: Friday, November 9, 2018 @ 21:34:35
  Author: felixonmars
Revision: 338594

archrelease: copy trunk to staging-x86_64

Added:
  qhull/repos/staging-x86_64/
  qhull/repos/staging-x86_64/PKGBUILD
    (from rev 338593, qhull/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: qhull/repos/staging-x86_64/PKGBUILD (from rev 338593, qhull/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-11-09 21:34:35 UTC (rev 338594)
@@ -0,0 +1,39 @@
+# 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=2015.2
+pkgrel=3
+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-2015-src-7.2.0.tgz")
+sha256sums=('78b010925c3b577adc3d58278787d7df08f7c8fb02c3490e375eab91bb58a436')
+
+build() {
+  cd $pkgname-$pkgver
+
+  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 ..
+  make
+}
+
+package() { 
+  cd $pkgname-$pkgver/srcbuild
+
+  make DESTDIR="$pkgdir" install
+
+  # Install license
+  install -Dm644 "$srcdir/$pkgname-$pkgver/COPYING.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}


More information about the arch-commits mailing list