void-packages/srcpkgs/clthreads/template
tibequadorian 0ec79ea177 clthreads: remove build flags fix
also update maintainer
2021-02-26 01:59:03 -03:00

34 lines
945 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="tibequadorian <tibequadorian@posteo.de>"
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"
}
}