diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-11-22 23:21:13 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-11-22 23:27:18 +0100 |
commit | 4b41b97946fe0797830bec65ea5c96d892add604 (patch) | |
tree | 29531093aaca4fa591cba23fd6e9a4f2b2a282a6 | |
parent | 918e48fe54b7d3c747f9ff7ce790b58de869a652 (diff) | |
download | aports-4b41b97946fe0797830bec65ea5c96d892add604.tar.bz2 aports-4b41b97946fe0797830bec65ea5c96d892add604.tar.xz |
testing/rsound: split into rsound-client and rsound-server
-rw-r--r-- | testing/rsound/APKBUILD | 30 |
1 files 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 |