44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'sndio'
|
|
pkgname=sndio
|
|
version=1.10.0
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="--prefix=/usr"
|
|
makedepends="alsa-lib-devel"
|
|
short_desc="Small audio and MIDI framework part of the OpenBSD project"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="ISC"
|
|
system_accounts="sndiod"
|
|
sndiod_descr="sndio daemon"
|
|
sndiod_pgroup="audio"
|
|
homepage="http://www.sndio.org/"
|
|
distfiles="http://www.sndio.org/${pkgname}-${version}.tar.gz"
|
|
checksum=bebd3bfd01c50c9376cf3e7814b9379bed9e17d0393b5113b7eb7a3d0d038c54
|
|
|
|
post_install() {
|
|
vsv sndiod
|
|
sed -n '/Copyright/,/PERFORMANCE/p' <sndiod/sndiod.c >LICENSE
|
|
}
|
|
|
|
libsndio_package() {
|
|
short_desc+=" -- library"
|
|
shlib_provides="libsndio.so.7.0"
|
|
pkg_install() {
|
|
vmove "usr/lib/libsndio.so.*"
|
|
# compat symlink until everything is built with libsndio.so.7 as SONAME
|
|
ln -sf libsndio.so.7 ${PKGDESTDIR}/usr/lib/libsndio.so.7.0
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
|
|
sndio-devel_package() {
|
|
depends="libsndio>=${version}_${revision}"
|
|
short_desc+=" -- development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/share/man/man3/*.3"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|