From ed3779cc9dd595a05f86ad3b6d01087cc05b4c6a Mon Sep 17 00:00:00 2001 From: Georg Schabel Date: Thu, 11 Dec 2014 15:30:19 +0100 Subject: [PATCH 1/2] New package: mpdscribble-0.22 --- srcpkgs/mpdscribble/files/mpdscribble.service | 10 +++++++++ srcpkgs/mpdscribble/files/mpdscribble/run | 2 ++ srcpkgs/mpdscribble/template | 22 +++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 srcpkgs/mpdscribble/files/mpdscribble.service create mode 100755 srcpkgs/mpdscribble/files/mpdscribble/run create mode 100644 srcpkgs/mpdscribble/template diff --git a/srcpkgs/mpdscribble/files/mpdscribble.service b/srcpkgs/mpdscribble/files/mpdscribble.service new file mode 100644 index 00000000000..1f3acdc1e0e --- /dev/null +++ b/srcpkgs/mpdscribble/files/mpdscribble.service @@ -0,0 +1,10 @@ +[Unit] +Description=MPD Scribbler +Requires=mpd.service +After=mpd.service + +[Service] +ExecStart=/usr/bin/mpdscribble --no-daemon + +[Install] +WantedBy=default.target diff --git a/srcpkgs/mpdscribble/files/mpdscribble/run b/srcpkgs/mpdscribble/files/mpdscribble/run new file mode 100755 index 00000000000..7a424311307 --- /dev/null +++ b/srcpkgs/mpdscribble/files/mpdscribble/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec mpdscribble --no-daemon diff --git a/srcpkgs/mpdscribble/template b/srcpkgs/mpdscribble/template new file mode 100644 index 00000000000..f86326e7d6a --- /dev/null +++ b/srcpkgs/mpdscribble/template @@ -0,0 +1,22 @@ +# Template file for 'mpdscribble' + +pkgname=mpdscribble +version=0.22 +revision=1 +short_desc="MPD audio scrobbler (e.g. last.fm)" +homepage="http://mpd.wikia.com/wiki/Client:Mpdscribble" +license="GPL-2" +maintainer="Georg Schabel " + +distfiles="http://www.musicpd.org/download/${pkgname}/${version}/${pkgname}-${version}.tar.bz2" +checksum=1cde2b5f8c70f0e3e6f059d01bf0b0f2eac2b29fbcd14b01a8a5103e603feb41 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="libmpdclient-devel glib-devel libcurl-devel" + +post_install() { + vsv mpdscribble + if [ "$build_option_systemd" ]; then + vinstall ${FILESDIR}/mpdscribble.service 644 usr/lib/systemd/system + fi +} From ba42d2e7996a94006461f0ab60f7759afc1aa1dd Mon Sep 17 00:00:00 2001 From: Georg Schabel Date: Thu, 11 Dec 2014 17:42:49 +0100 Subject: [PATCH 2/2] add build_options --- srcpkgs/mpdscribble/files/mpdscribble.service | 2 +- srcpkgs/mpdscribble/template | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/mpdscribble/files/mpdscribble.service b/srcpkgs/mpdscribble/files/mpdscribble.service index 1f3acdc1e0e..4b65aaa0979 100644 --- a/srcpkgs/mpdscribble/files/mpdscribble.service +++ b/srcpkgs/mpdscribble/files/mpdscribble.service @@ -1,5 +1,5 @@ [Unit] -Description=MPD Scribbler +Description=MPD Scrobbler Requires=mpd.service After=mpd.service diff --git a/srcpkgs/mpdscribble/template b/srcpkgs/mpdscribble/template index f86326e7d6a..cb04559842c 100644 --- a/srcpkgs/mpdscribble/template +++ b/srcpkgs/mpdscribble/template @@ -11,6 +11,7 @@ maintainer="Georg Schabel " distfiles="http://www.musicpd.org/download/${pkgname}/${version}/${pkgname}-${version}.tar.bz2" checksum=1cde2b5f8c70f0e3e6f059d01bf0b0f2eac2b29fbcd14b01a8a5103e603feb41 build_style=gnu-configure +build_options="systemd" hostmakedepends="pkg-config" makedepends="libmpdclient-devel glib-devel libcurl-devel"