diff --git a/common/shlibs b/common/shlibs index 82a0413e42e..fcfcb61d66a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3428,3 +3428,4 @@ libchewing.so.3 libchewing-0.5.1_1 libdwarves.so.1 pahole-1.12_1 libdwarves_emit.so.1 pahole-1.12_1 libdwarves_reorganize.so.1 pahole-1.12_1 +libclthreads.so.2 clthreads-2.4.2_1 diff --git a/srcpkgs/clthreads-devel b/srcpkgs/clthreads-devel new file mode 120000 index 00000000000..41840b96db5 --- /dev/null +++ b/srcpkgs/clthreads-devel @@ -0,0 +1 @@ +clthreads \ No newline at end of file diff --git a/srcpkgs/clthreads/template b/srcpkgs/clthreads/template new file mode 100644 index 00000000000..08b6dbac8d7 --- /dev/null +++ b/srcpkgs/clthreads/template @@ -0,0 +1,36 @@ +# Template file for 'clthreads' +pkgname=clthreads +version=2.4.2 +revision=1 +build_wrksrc=source +build_style=gnu-makefile +make_install_args="LIBDIR=/usr/lib" +short_desc="C++ wrapper library around the POSIX threads API" +maintainer="bluntphenomena " +license="LGPL-2.1-or-later" +homepage="https://kokkinizita.linuxaudio.org/linuxaudio/" +distfiles="https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${version}.tar.bz2" +checksum=c659b14c0c4055c44432cb83060b95d30ae0c1ecc6f50d73968e239c100f7a31 + +pre_build() { + sed -i '/march=native/d' Makefile +} + +pre_install() { + # fix wrong path + vsed -i 's/$(DESTDIR)$(PREFIX)\//$(DESTDIR)/g' Makefile +} + +post_install() { + # add missing symlink + ln -s libclthreads.so.${version} ${DESTDIR}/usr/lib/libclthreads.so.${version%%.*} +} + +clthreads-devel_package() { + depends="${sourcepkg}-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + } +}