[arch-commits] Commit in clthreads/repos/community-testing-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Fri Aug 31 14:12:56 UTC 2018


    Date: Friday, August 31, 2018 @ 14:12:56
  Author: dvzrv
Revision: 375844

archrelease: copy trunk to community-testing-x86_64

Added:
  clthreads/repos/community-testing-x86_64/PKGBUILD
    (from rev 375843, clthreads/trunk/PKGBUILD)
Deleted:
  clthreads/repos/community-testing-x86_64/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-31 14:12:46 UTC (rev 375843)
+++ PKGBUILD	2018-08-31 14:12:56 UTC (rev 375844)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: speps <speps at aur dot archlinux dot org>
-# Contributor: Christoph Zeiler <rabyte*gmail>
-# Contributor: Tom K <tomk at runbox.com>
-# Contributor: Shinlun Hsieh <yngwiexx at yahoo.com.tw>
-# Contributor: Philipp Überbacher <murks at lavabit dot com>
-
-pkgname=clthreads
-pkgver=2.4.2
-pkgrel=1
-pkgdesc="C++ wrapper library around the POSIX threads API"
-arch=('x86_64')
-url="https://kokkinizita.linuxaudio.org/linuxaudio/"
-license=('LGPL')
-depends=('gcc-libs')
-source=("${url}downloads/${pkgname}-${pkgver}.tar.bz2")
-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}/source"
-  make
-}
-
-package(){
-  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}"
-}

Copied: clthreads/repos/community-testing-x86_64/PKGBUILD (from rev 375843, clthreads/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-08-31 14:12:56 UTC (rev 375844)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: speps <speps at aur dot archlinux dot org>
+# Contributor: Christoph Zeiler <rabyte*gmail>
+# Contributor: Tom K <tomk at runbox.com>
+# Contributor: Shinlun Hsieh <yngwiexx at yahoo.com.tw>
+# Contributor: Philipp Überbacher <murks at lavabit dot com>
+
+pkgname=clthreads
+pkgver=2.4.2
+pkgrel=2
+pkgdesc="C++ wrapper library around the POSIX threads API"
+arch=('x86_64')
+url="https://kokkinizita.linuxaudio.org/linuxaudio/"
+license=('LGPL2.1')
+depends=('gcc-libs')
+source=("${url}downloads/${pkgname}-${pkgver}.tar.bz2")
+sha512sums=('a91de7a287c2cb9b2ce17e4c158db79bbaeccb278510d11e6c05fcbe9295c26b4d0231fa97800b265decd1d0886b7425f7b5d4cbcb18758be540356408e72131')
+
+prepare() {
+  cd "${pkgname}-${pkgver}/source"
+  # remove optimization
+  # patch call to ldconfig to be local (upstream fix requested)
+  # remove wrongly applied use of PREFIX
+  sed -e '/native/d' \
+      -e 's/ldconfig/& -N $(PREFIX)\/$(LIBDIR)/' \
+      -e 's/(PREFIX)\/\$//g' \
+      -i Makefile
+}
+
+build() {
+  cd "${pkgname}-${pkgver}/source"
+  make
+}
+
+package(){
+  cd "${pkgname}-${pkgver}/source"
+  make DESTDIR="${pkgdir}/" PREFIX='/usr' LIBDIR='/usr/lib' install
+}



More information about the arch-commits mailing list