void-packages/srcpkgs/zita-alsa-pcmi/template

33 lines
901 B
Bash

# Template file for 'zita-alsa-pcmi'
pkgname=zita-alsa-pcmi
version=0.2.0
revision=1
build_wrksrc="libs"
build_style=gnu-makefile
make_install_args="LIBDIR=lib"
makedepends="alsa-lib-devel"
short_desc="Easy access to ALSA PCM devices"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-3"
homepage="https://kokkinizita.linuxaudio.org/linuxaudio/"
distfiles="https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${version}.tar.bz2"
checksum=491eaf9da24fb20b94723f8e75e2ea3a667fc53555b54d2acd390bf4c418fbe5
pre_build() {
sed -i -e "s/g++/$CXX/" Makefile
}
post_install() {
# add missing symlink
ln -s libzita-alsa-pcmi.so.${version} ${PKGDESTDIR}/usr/lib/libzita-alsa-pcmi.so.${version%%.*}
}
zita-alsa-pcmi-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}