From 4b41b97946fe0797830bec65ea5c96d892add604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 22 Nov 2015 23:21:13 +0100 Subject: testing/rsound: split into rsound-client and rsound-server --- testing/rsound/APKBUILD | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/testing/rsound/APKBUILD b/testing/rsound/APKBUILD index db421dfee8..000c9f2ba7 100644 --- a/testing/rsound/APKBUILD +++ b/testing/rsound/APKBUILD @@ -3,7 +3,7 @@ pkgname=rsound _realname=RSound pkgver=1.1 -pkgrel=2 +pkgrel=3 pkgdesc="A multi-platform, simple PCM audio server and client" url="https://github.com/Themaister/RSound" arch="all" @@ -12,13 +12,13 @@ depends="" depends_dev="alsa-lib-dev libsamplerate-dev portaudio-dev libao-dev jack-dev" makedepends="$depends_dev" install="" -subpackages="$pkgname-dev $pkgname-libs $pkgname-doc" +subpackages="$pkgname-dev $pkgname-libs $pkgname-doc $pkgname-client $pkgname-server" source="$pkgname-$pkgver.tar.gz::https://github.com/Themaister/${_realname}/archive/v${pkgver}.tar.gz - rsound.initd - rsound.confd + $pkgname.initd + $pkgname.confd pidfile.patch" -_builddir="$srcdir"/${_realname}-$pkgver +_builddir="$srcdir"/$_realname-$pkgver prepare() { cd "$_builddir" local i @@ -45,9 +45,25 @@ package() { install -Dm644 "$_builddir"/$doc \ "$pkgdir"/usr/share/doc/$pkgname/$doc || return 1 done +} + +client() { + pkgdesc="$pkgdesc (client)" + mkdir -p "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/bin/rsdplay \ + "$subpkgdir"/usr/bin/ || return 1 +} + +server() { + pkgdesc="$pkgdesc (server)" + mkdir -p "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/bin/rsd \ + "$subpkgdir"/usr/bin/ || return 1 - install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + install -Dm755 "$srcdir"/$pkgname.initd \ + "$subpkgdir"/etc/init.d/$pkgname || return 1 + install -Dm644 "$srcdir"/$pkgname.confd \ + "$subpkgdir"/etc/conf.d/$pkgname || return 1 } md5sums="d416ecd6d1ca39af78c7626ed1b3833e rsound-1.1.tar.gz -- cgit v1.2.3