Date: Tuesday, July 7, 2020 @ 16:00:56 Author: felixonmars Revision: 659073
archrelease: copy trunk to community-staging-x86_64 Added: clthreads/repos/community-staging-x86_64/ clthreads/repos/community-staging-x86_64/PKGBUILD (from rev 659072, clthreads/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: clthreads/repos/community-staging-x86_64/PKGBUILD (from rev 659072, clthreads/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-07-07 16:00:56 UTC (rev 659073) @@ -0,0 +1,40 @@ +# Maintainer: David Runge <d...@sleepmap.de> +# Contributor: speps <speps at aur dot archlinux dot org> +# Contributor: Christoph Zeiler <rabyte*gmail> +# Contributor: Tom K <t...@runbox.com> +# Contributor: Shinlun Hsieh <yngwi...@yahoo.com.tw> +# Contributor: Philipp Überbacher <murks at lavabit dot com> + +pkgname=clthreads +pkgver=2.4.2 +pkgrel=5 +pkgdesc="C++ wrapper library around the POSIX threads API" +arch=('x86_64') +url="https://kokkinizita.linuxaudio.org/linuxaudio/" +license=('LGPL2.1') +depends=('gcc-libs' 'glibc') +provides=('libclthreads.so') +source=("https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${pkgver}.tar.bz2") +sha512sums=('a91de7a287c2cb9b2ce17e4c158db79bbaeccb278510d11e6c05fcbe9295c26b4d0231fa97800b265decd1d0886b7425f7b5d4cbcb18758be540356408e72131') + +prepare() { + cd "${pkgname}-${pkgver}/source" + # remove optimization + # call ldconfig in local context + # remove wrongly applied use of PREFIX (line 54,55) + sed -e '/native/d' \ + -e 's/ldconfig/& -N $(DESTDIR)\/$(LIBDIR)/' \ + -e 's/(PREFIX)\/\$//g' \ + -i Makefile +} + +build() { + cd "${pkgname}-${pkgver}" + make -C source +} + +package(){ + cd "${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}/" PREFIX='/usr' LIBDIR='/usr/lib' -C source install + install -vDm 644 AUTHORS -t "${pkgdir}/usr/share/doc/${pkgname}" +}