51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
# Template file for 'sndio'
|
|
pkgname=sndio
|
|
version=0.0.8.20150506
|
|
revision=1
|
|
wrksrc="${pkgname}"
|
|
build_style=configure
|
|
configure_args="--prefix=/usr"
|
|
hostmakedepends="cvs"
|
|
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"
|
|
homepage="http://www.sndio.org/"
|
|
system_accounts="sndiod"
|
|
sndiod_descr="sndio daemon"
|
|
build_pie=yes
|
|
|
|
do_fetch() {
|
|
mkdir ${wrksrc}
|
|
cat >${wrksrc}/myssh <<'EOF'
|
|
#!/bin/sh
|
|
exec ssh -o StrictHostKeyChecking=no "$@"
|
|
EOF
|
|
chmod +x ${wrksrc}/myssh
|
|
CVS_RSH="${wrksrc}/myssh" cvs -z9 -d anoncvs@moule.caoua.org:/sndio \
|
|
co -D ${version##*.} -f sndio
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|