diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | lastfmproxy.install | 4 | ||||
-rw-r--r-- | lastfmproxy.service | 9 |
4 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fe98d8743c1c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = lastfmproxy + pkgdesc = A proxy server for the last.fm radio streams that allows you to use your regular old audio player to listen to the last.fm streams + pkgver = 1.3b + pkgrel = 5 + url = http://vidar.gimp.org/lastfmproxy + install = lastfmproxy.install + arch = i686 + arch = x86_64 + license = GPL2 + depends = python2 + backup = usr/share/lastfmproxy/config.py + source = http://vidar.gimp.org/wp-content/uploads/2007/12/lastfmproxy-1.3b.tar.gz + source = lastfmproxy.service + sha256sums = b66be0fcc76e557d1306660162db946f97262335f3528cf5d303b3ab3410a881 + sha256sums = 46470d3ee7aa51a40950fbe550a033ad990ccd2db33bab0dac8bf9ecdd833e07 + +pkgname = lastfmproxy + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f2800b427c11 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Robert Knauer <robert@privatdemail.net> +# Contributor: Will Foran <will.foran@gmail.com> +# Contributor: quantax + +pkgname=lastfmproxy +pkgver=1.3b +pkgrel=5 +pkgdesc="A proxy server for the last.fm radio streams that allows you to use your regular old audio player to listen to the last.fm streams" +url="http://vidar.gimp.org/lastfmproxy" +license='GPL2' +depends=('python2') +backup=( + 'usr/share/lastfmproxy/config.py' +) +arch=('i686' 'x86_64') +source=( + "http://vidar.gimp.org/wp-content/uploads/2007/12/${pkgname}-${pkgver}.tar.gz" + 'lastfmproxy.service' +) +sha256sums=( + 'b66be0fcc76e557d1306660162db946f97262335f3528cf5d303b3ab3410a881' + '46470d3ee7aa51a40950fbe550a033ad990ccd2db33bab0dac8bf9ecdd833e07' +) +install="${pkgname}.install" + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + # create directories + install -d "${pkgdir}/usr/share/lastfmproxy/data/" + install -d "${pkgdir}/usr/bin/" + install -d "${pkgdir}/usr/lib/systemd/system/" + # install everything + cp -r * "${pkgdir}/usr/share/lastfmproxy/" + chmod -R 644 "${pkgdir}/usr/share/lastfmproxy/"* + chmod 755 "${pkgdir}/usr/share/lastfmproxy/main.py" + chmod 755 "${pkgdir}/usr/share/lastfmproxy/changestation.py" + # create additional executables in /usr/bin + echo "#!/bin/bash +python2 /usr/share/lastfmproxy/main.py" > "${pkgdir}/usr/bin/lastfmproxy" + echo "#!/bin/bash +python2 /usr/share/lastfmproxy/changestation.py \$@" > "${pkgdir}/usr/bin/lastfmproxy-station" + # ... and make them executable + chmod 755 "${pkgdir}/usr/bin/lastfmproxy" + chmod 755 "${pkgdir}/usr/bin/lastfmproxy-station" + # install systemd service file + install -m 644 "${srcdir}/lastfmproxy.service" "${pkgdir}/usr/lib/systemd/system/" +} diff --git a/lastfmproxy.install b/lastfmproxy.install new file mode 100644 index 000000000000..57ec1f8aa1de --- /dev/null +++ b/lastfmproxy.install @@ -0,0 +1,4 @@ +post_remove() +{ + rm -f /usr/share/lastfmproxy/*.pyc +} diff --git a/lastfmproxy.service b/lastfmproxy.service new file mode 100644 index 000000000000..c3a4db32bddf --- /dev/null +++ b/lastfmproxy.service @@ -0,0 +1,9 @@ +[Unit] +Description=LastFMproxy + +[Service] +Type=simple +ExecStart=/usr/bin/python2 /usr/share/lastfmproxy/main.py + +[Install] +WantedBy=multi-user.target |