Date: Saturday, November 23, 2019 @ 19:48:07 Author: arojas Revision: 369655
Build libqhullcpp.a with PIC and drop the other static libs Modified: qhull/trunk/PKGBUILD ----------+ PKGBUILD | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-11-23 17:45:31 UTC (rev 369654) +++ PKGBUILD 2019-11-23 19:48:07 UTC (rev 369655) @@ -6,7 +6,8 @@ pkgname=qhull pkgver=2019.1 -pkgrel=1 +_pkgver=7.3.2 +pkgrel=2 pkgdesc="A general dimension code for computing convex hulls and related structures" arch=(x86_64) url="http://www.qhull.org/" @@ -13,11 +14,16 @@ license=(custom) depends=(glibc) makedepends=(cmake) -source=("http://www.qhull.org/download/qhull-2019-src-7.3.2.tgz") -sha256sums=('2b7990558c363076261564f61b74db4d0d73b71869755108a469038c07dc43fb') +source=("http://www.qhull.org/download/qhull-2019-src-$_pkgver.tgz" + qhull-pic.patch::"https://github.com/qhull/qhull/commit/a5d0e644.patch") +sha256sums=('2b7990558c363076261564f61b74db4d0d73b71869755108a469038c07dc43fb' + 'edb77b3b949628eb6759920de8cd3216e179f8b54f16e357c0d4b5fe8bc06131') prepare() { mkdir -p build + + cd $pkgname-$pkgver + patch -p1 -i ../qhull-pic.patch # Build libqhullcpp with PIC } build() { @@ -35,4 +41,6 @@ # Install license install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ + # Drop static libraries + rm "$pkgdir"/usr/lib/libqhullstatic*.a }