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

33 lines
922 B
Bash

# Template file for 'zita-alsa-pcmi'
pkgname=zita-alsa-pcmi
version=0.3.2
revision=1
build_wrksrc="source"
build_style=gnu-makefile
make_install_args="LIBDIR=/usr/lib"
makedepends="alsa-lib-devel"
short_desc="Easy access to ALSA PCM devices"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-3.0-or-later"
homepage="https://kokkinizita.linuxaudio.org/linuxaudio/"
distfiles="https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pkgname}-${version}.tar.bz2"
checksum=1a1d9f7e373032bd5702382e4c923407911f4f791c449c0c0f027a725edba789
pre_build() {
sed -i '/march=native/d' 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"
}
}