Commit cb7e6619 authored by Sören Tempel's avatar Sören Tempel

community/rsound: remove aport

upstream has been dead for an eternity. We can't guarantee that this
software will continue to receive bug and security fixes.
parent 18a2f3af
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=rsound
_realname=RSound
pkgver=1.1
pkgrel=4
pkgdesc="A multi-platform, simple PCM audio server and client"
url="https://github.com/Themaister/RSound"
arch="all"
license="GPL-3.0"
depends=""
depends_dev="alsa-lib-dev libsamplerate-dev portaudio-dev libao-dev jack-dev"
makedepends="$depends_dev"
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
$pkgname.initd
$pkgname.confd
pidfile.patch"
builddir="$srcdir"/$_realname-$pkgver
build() {
cd "$builddir"
./configure --prefix=/usr
make
}
package() {
# The rsound install rule doesn't create non-existent directories.
mkdir -p "$pkgdir"/usr/lib "$pkgdir"/usr/share/man/man1 \
"$pkgdir"/usr/lib/pkgconfig "$pkgdir"/usr/include
make DESTDIR="$pkgdir" -C "$builddir" install
for doc in DOCUMENTATION ChangeLog AUTHORS INSTALL README; do
install -Dm644 "$builddir"/$doc \
"$pkgdir"/usr/share/doc/$pkgname/$doc
done
}
client() {
pkgdesc="$pkgdesc (client)"
mkdir -p "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/bin/rsdplay \
"$subpkgdir"/usr/bin/
}
server() {
pkgdesc="$pkgdesc (server)"
mkdir -p "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/bin/rsd \
"$subpkgdir"/usr/bin/
install -Dm755 "$srcdir"/$pkgname.initd \
"$subpkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd \
"$subpkgdir"/etc/conf.d/$pkgname
}
sha512sums="1f55bd1c9cab03cb844ca9d3d4a60413421f20d2a2432e1eff7a55ef662842aa6bb23913e3dcb490b6186feff4ddc462d499db7c45639688398ec42912bce252 rsound-1.1.tar.gz
5047ca28666e6f4700659ccd1dd72dfed70146edccbece2fd529653c8c9b82057f0c7cf47233ebd5f9aa5c3cea0f0313f26c61ba0b4ae9db540ffe06a0acc1f8 rsound.initd
4b07a8a04bae9f127f3b362ccb867041139193a73e83051055c783722bbc515d045b9ea3814f91352af20f314b0b8f1b768dc39d8d0f4ef47a6b50e288f9b38d rsound.confd
aef6a2fc2f0c6f71f3fcd424d131bcd1a73ff8c451fc18a496341ff5c1a403d9e351e0f1555c46ae23529f4710b1af65abef88b2cc43e23f978cc84318e92197 pidfile.patch"
diff -upr RSound-1.1.orig/src/rsound-common.c RSound-1.1/src/rsound-common.c
--- RSound-1.1.orig/src/rsound-common.c 2015-11-22 03:25:55.595163404 +0100
+++ RSound-1.1/src/rsound-common.c 2015-11-22 03:26:56.161613187 +0100
@@ -49,7 +49,7 @@
/* Not really portable, need to find something better */
-#define PIDFILE "/tmp/.rsound.pid"
+#define PIDFILE "/var/run/rsound.pid"
/* Pulls in callback structs depending on compilation options. */
# Options to pass to rsound at startup.
RSOUND_OPTS="-L"
#!/sbin/openrc-run
name="rsound daemon"
command="/usr/bin/rsd"
command_args="-D $RSOUND_OPTS"
pidfile="/var/run/$SVCNAME.pid"
depend() {
need net
use esound
after firewall
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment