40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Template file for 'sndio'
|
|
pkgname=sndio
|
|
version=0.0.10
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="--prefix=/usr"
|
|
makedepends="alsa-lib-devel libX11-devel"
|
|
short_desc="Small audio and MIDI framework part of the OpenBSD project"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="ISC"
|
|
system_accounts="sndiod"
|
|
sndiod_descr="sndio daemon"
|
|
build_pie=yes
|
|
homepage="http://www.sndio.org/"
|
|
distfiles="http://www.sndio.org/${pkgname}-${version}.tar.gz"
|
|
checksum=100554667533f7854e703a88c167215926a58b5c898e6d3e02b60be26c5415ae
|
|
|
|
post_install() {
|
|
vsv sndiod
|
|
sed -n '/Copyright/,/PERFORMANCE/p' <sndiod/sndiod.c >LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
sndio-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" -- development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/share/man/man3/*.3"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
xvolkeys_package() {
|
|
short_desc="Hot-keys in X11 to control sndiod master volume"
|
|
pkg_install() {
|
|
vmove usr/bin/xvolkeys
|
|
vmove usr/share/man/man1/xvolkeys.1
|
|
}
|
|
}
|