diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-10-19 11:44:56 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-10-19 12:19:07 +0200 |
commit | 7f392d58565b1aa848487cd5d61ccc147ed051f2 (patch) | |
tree | c8be40b5ae9988f62d90a05699f451b38f61a5db /community/mpdscribble | |
parent | 12435221077aa79f71953ff0edc0cd4b734bf45a (diff) | |
download | aports-7f392d58565b1aa848487cd5d61ccc147ed051f2.tar.bz2 aports-7f392d58565b1aa848487cd5d61ccc147ed051f2.tar.xz |
community/mpdscribble: move from main
Diffstat (limited to 'community/mpdscribble')
-rw-r--r-- | community/mpdscribble/APKBUILD | 55 | ||||
-rw-r--r-- | community/mpdscribble/mpdscribble.initd | 20 |
2 files changed, 75 insertions, 0 deletions
diff --git a/community/mpdscribble/APKBUILD b/community/mpdscribble/APKBUILD new file mode 100644 index 0000000000..7fc3384455 --- /dev/null +++ b/community/mpdscribble/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=mpdscribble +pkgver=0.22 +pkgrel=1 +pkgdesc="last.fm client for mpd" +url="http://mpd.wikia.com/wiki/Client:Mpdscribble" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev libmpdclient-dev curl-dev glib-dev" +install="" +subpackages="$pkgname-doc" +source="http://www.musicpd.org/download/mpdscribble/${pkgver}/mpdscribble-${pkgver}.tar.bz2 + mpdscribble.initd" + +_builddir="$srcdir"/mpdscribble-$pkgver +prepare() { + local i + cd "$_builddir" + update_config_sub || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -D -m755 "$srcdir"/mpdscribble.initd "$pkgdir"/etc/init.d/mpdscribble +} + +md5sums="652ee927b797e9a4cef45494e77047db mpdscribble-0.22.tar.bz2 +d746eca2d7a5d532a4b5aefe7863fba9 mpdscribble.initd" +sha256sums="1cde2b5f8c70f0e3e6f059d01bf0b0f2eac2b29fbcd14b01a8a5103e603feb41 mpdscribble-0.22.tar.bz2 +d24e970f1da57b391c0bc8efa79b7cadfc5af08c05c73d05f42330a8408fa4fa mpdscribble.initd" +sha512sums="bedd93392a4d5a0609dcaf7aefeeff3851f3084da8c34a4fc1f8fde51c2ba10b8370ac52cc8d55f0c9a96fffed975827a0935087c2c51880b7bfef8d79182dc8 mpdscribble-0.22.tar.bz2 +b82d3e5678aba145a5c8d172ebf74960d164e3e934426cc755948d795743bb07158f502705d40c1730a40b6a6d73e84c5792419adaf6ab83ec7c33756f0abb43 mpdscribble.initd" diff --git a/community/mpdscribble/mpdscribble.initd b/community/mpdscribble/mpdscribble.initd new file mode 100644 index 0000000000..ac8a41e68f --- /dev/null +++ b/community/mpdscribble/mpdscribble.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run + +depend() { + need net + use mpd +} + +start () { + + ebegin "Starting Music Player Daemon Audioscrobbler client" + start-stop-daemon --start --exec /usr/bin/mpdscribble -- --pidfile /var/run/mpdscribble.pid + eend $? +} + +stop () { + ebegin "Stopping Music Player Daemon Audioscrobbler client" + start-stop-daemon --stop --quiet -p /var/run/mpdscribble.pid --exec /usr/bin/mpdscribble || eerror "mpdscribble is not running" + rm -f /var/run/mpdscribble.pid + eend $? +} |