void-packages/srcpkgs/clthreads/template

35 lines
937 B
Bash

# 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="Orphaned <orphan@voidlinux.org>"
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
CXXFLAGS="-fPIC"
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"
}
}