summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThom Wiggers2014-12-31 13:39:57 +0100
committerThom Wiggers2014-12-31 13:39:57 +0100
commit6c493a271ec6ee205ed2284a10c4723ef6ad302c (patch)
tree821b79c8f831403717cab5502682489c38b9be79
downloadaur-6c493a271ec6ee205ed2284a10c4723ef6ad302c.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD30
-rw-r--r--README.md8
-rw-r--r--subsonic-beta.install8
-rw-r--r--subsonic.service11
5 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..542a4c77a3c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = subsonic-beta
+ pkgdesc = A free, web-based media streamer and jukebox.
+ pkgver = 5.0.beta1
+ pkgrel = 1
+ url = http://subsonic.org/
+ install = subsonic-beta.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = jre7-openjdk-headless
+ depends = libcups
+ conflicts = subsonic
+ backup = var/subsonic/db
+ source = http://prdownloads.sourceforge.net/subsonic/subsonic-5.0.beta1-standalone.tar.gz
+ source = subsonic.service
+ md5sums = 04addd4f090b75d09e3831e77982be2e
+ md5sums = 0d321009898118fa9390631fd21c5e63
+
+pkgname = subsonic-beta
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..732b5c4ef63
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: M0Rf30 <morf3089@gmail.com>
+# Contributors : hoban
+# Contributors : Nrm
+
+pkgname=subsonic-beta
+pkgver=5.0.beta1
+pkgrel=1
+pkgdesc="A free, web-based media streamer and jukebox."
+arch=('i686' 'x86_64')
+url="http://subsonic.org/"
+license=('GPL')
+depends=('jre7-openjdk-headless' 'libcups')
+conflicts=('subsonic')
+source=(http://prdownloads.sourceforge.net/subsonic/subsonic-${pkgver}-standalone.tar.gz
+ 'subsonic.service')
+backup=('var/subsonic/db')
+install=$pkgname.install
+
+package() {
+ cd ${srcdir}
+ mkdir -p $pkgdir/var/subsonic
+ mkdir -p $pkgdir/usr/lib/systemd/system
+ cp * $pkgdir/var/subsonic
+ rm $pkgdir/var/subsonic/{subsonic.bat,subsonic-${pkgver}-standalone.tar.gz}
+ cp $srcdir/subsonic.service $pkgdir/usr/lib/systemd/system
+ chmod +x $pkgdir/var/subsonic/subsonic.sh
+}
+
+md5sums=('04addd4f090b75d09e3831e77982be2e'
+ '0d321009898118fa9390631fd21c5e63')
diff --git a/README.md b/README.md
new file mode 100644
index 00000000000..9636ba50321
--- /dev/null
+++ b/README.md
@@ -0,0 +1,8 @@
+Subsonic Beta AUR package
+=========================
+
+Based on the package by [Morfeo][morfeo]
+
+https://aur.archlinux.org/packages/subsonic-beta/
+
+[morfeo]: https://aur.archlinux.org/account/Morfeo
diff --git a/subsonic-beta.install b/subsonic-beta.install
new file mode 100644
index 00000000000..3427acf64ef
--- /dev/null
+++ b/subsonic-beta.install
@@ -0,0 +1,8 @@
+post_install() {
+ echo "*************************************************"
+ echo "* Edit /var/subsonic/subsonic.sh to configure *"
+ echo "* subsonic *"
+ echo "*************************************************"
+
+}
+
diff --git a/subsonic.service b/subsonic.service
new file mode 100644
index 00000000000..5e65f03ac41
--- /dev/null
+++ b/subsonic.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Subsonic
+After=network.target
+
+[Service]
+ExecStart=/var/subsonic/subsonic.sh
+ExecStop=/bin/kill -15 $MAINPID
+Type=forking
+
+[Install]
+WantedBy=multi-user.target