void-packages/srcpkgs/zita-convolver/template

36 lines
992 B
Bash

# Template file for 'zita-convolver'
pkgname=zita-convolver
version=3.1.0
reverts="4.0.0_1"
revision=3
build_style=gnu-makefile
make_install_args="LIBDIR=lib"
hostmakedepends="pkg-config"
makedepends="fftw-devel"
build_wrksrc="libs"
short_desc="A fast partitioned convolution engine library"
maintainer="silvernode <mollusk@homebutter.com>"
license="GPL-3"
homepage="http://kokkinizita.linuxaudio.org/linuxaudio/"
distfiles="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${version}.tar.bz2"
checksum="bf7e93b582168b78d40666974460ad8142c2fa3c3412e327e4ab960b3fb31993"
pre_build() {
sed -i 's/g++/$(CXX)/' Makefile
sed -i '/march=native/d' Makefile
}
post_install() {
# add missing symlink
ln -s libzita-convolver.so.${version} ${PKGDESTDIR}/usr/lib/libzita-convolver.so.${version%%.*}
}
zita-convolver-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}