[arch-commits] Commit in clthreads/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Thu Aug 30 23:54:47 UTC 2018


    Date: Thursday, August 30, 2018 @ 23:54:47
  Author: dvzrv
Revision: 375798

upgpkg: clthreads 2.4.2-1

Upgrading to 2.4.2. Removing use of Makefile install target as it's too broken and installing things manually.

Modified:
  clthreads/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-30 23:41:02 UTC (rev 375797)
+++ PKGBUILD	2018-08-30 23:54:47 UTC (rev 375798)
@@ -7,8 +7,8 @@
 # Contributor: Philipp Überbacher <murks at lavabit dot com>
 
 pkgname=clthreads
-pkgver=2.4.0
-pkgrel=4
+pkgver=2.4.2
+pkgrel=1
 pkgdesc="C++ wrapper library around the POSIX threads API"
 arch=('x86_64')
 url="https://kokkinizita.linuxaudio.org/linuxaudio/"
@@ -15,16 +15,27 @@
 license=('LGPL')
 depends=('gcc-libs')
 source=("${url}downloads/${pkgname}-${pkgver}.tar.bz2")
-sha512sums=('c307d9611e0530469b36367f05721e6676d7bb186be97d38b851e66d9f670663ceceedf065823b27ac5864725d52cc2f462fd8d96f1398a202e30d82910ec58b')
+sha512sums=('a91de7a287c2cb9b2ce17e4c158db79bbaeccb278510d11e6c05fcbe9295c26b4d0231fa97800b265decd1d0886b7425f7b5d4cbcb18758be540356408e72131')
 
+prepare() {
+  cd "${pkgname}-${pkgver}/source"
+  # remove optimization
+  # remove local call to ldconfig
+  sed -e '/native/d' \
+      -e '/ldconfig/d' \
+      -i Makefile
+}
+
 build() {
-  cd "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}/source"
   make
 }
 
 package(){
-  cd "${pkgname}-${pkgver}"
-  # mandatory fix for broken Makefile behavior (upstream fix is requested)
-  install -d "${pkgdir}/usr/include"
-  make PREFIX="${pkgdir}/usr" LIBDIR=lib install
+  cd "${pkgname}-${pkgver}/source"
+  # install header, shared object and symlink manually, as Makefile is broken
+  install -vDm 644 "${pkgname}.h" -t "${pkgdir}/usr/include/"
+  install -vDm 755 "lib${pkgname}.so.${pkgver}" -t "${pkgdir}/usr/lib/"
+  ln -sv "lib${pkgname}.so.${pkgver}" "${pkgdir}/usr/lib/lib${pkgname}.so"
+  install -vDm 644 ../AUTHORS -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list