New package: clthreads
This commit is contained in:
parent
26422862e5
commit
813b7bc7ab
3 changed files with 38 additions and 0 deletions
|
@ -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
|
||||
|
|
1
srcpkgs/clthreads-devel
Symbolic link
1
srcpkgs/clthreads-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
clthreads
|
36
srcpkgs/clthreads/template
Normal file
36
srcpkgs/clthreads/template
Normal file
|
@ -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 <gregwyd@gmail.com>"
|
||||
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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue