From 3aa1cbfa7c9486f9c1cc9cf2c65ad8ea1e82701d Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 8 Mar 2015 22:09:28 +0100 Subject: [PATCH] New package: sndio-0.0.8.20150308 --- common/shlibs | 1 + srcpkgs/sndio-devel | 1 + srcpkgs/sndio/files/sndiod/log/run | 2 ++ srcpkgs/sndio/files/sndiod/run | 2 ++ srcpkgs/sndio/template | 51 ++++++++++++++++++++++++++++++ srcpkgs/xvolkeys | 1 + 6 files changed, 58 insertions(+) create mode 120000 srcpkgs/sndio-devel create mode 100755 srcpkgs/sndio/files/sndiod/log/run create mode 100755 srcpkgs/sndio/files/sndiod/run create mode 100644 srcpkgs/sndio/template create mode 120000 srcpkgs/xvolkeys diff --git a/common/shlibs b/common/shlibs index 99b0f7bc8d4..1d2ed803882 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1942,3 +1942,4 @@ libpagemaker-0.0.so.0 libpagemaker-0.0.2_1 libkcddb.so.4 libkcddb-14.12.3_1 libk3bdevice.so.6 k3b-2.0.3a_1 libk3blib.so.6 k3b-2.0.3a_1 +libsndio.so.6.0 sndio-0.0.8.20150308_1 diff --git a/srcpkgs/sndio-devel b/srcpkgs/sndio-devel new file mode 120000 index 00000000000..f463c54366d --- /dev/null +++ b/srcpkgs/sndio-devel @@ -0,0 +1 @@ +sndio \ No newline at end of file diff --git a/srcpkgs/sndio/files/sndiod/log/run b/srcpkgs/sndio/files/sndiod/log/run new file mode 100755 index 00000000000..4472c76afb4 --- /dev/null +++ b/srcpkgs/sndio/files/sndiod/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -t sndiod diff --git a/srcpkgs/sndio/files/sndiod/run b/srcpkgs/sndio/files/sndiod/run new file mode 100755 index 00000000000..5f23cc89d83 --- /dev/null +++ b/srcpkgs/sndio/files/sndiod/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u sndiod:audio sndiod -L :: -d 2>&1 diff --git a/srcpkgs/sndio/template b/srcpkgs/sndio/template new file mode 100644 index 00000000000..ba145265c7a --- /dev/null +++ b/srcpkgs/sndio/template @@ -0,0 +1,51 @@ +# Template file for 'sndio' +pkgname=sndio +version=0.0.8.20150308 +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 " +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' 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 + } +} diff --git a/srcpkgs/xvolkeys b/srcpkgs/xvolkeys new file mode 120000 index 00000000000..f463c54366d --- /dev/null +++ b/srcpkgs/xvolkeys @@ -0,0 +1 @@ +sndio \ No newline at end of file