void-packages/srcpkgs/clthreads/template

39 lines
996 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="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
CXXFLAGS="-fPIC"
pre_build() {
vsed -i Makefile -e '/march=native/d'
}
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"
}
}