summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorThom Wiggers2017-03-24 11:00:01 +0100
committerThom Wiggers2017-03-24 11:02:10 +0100
commitc4df073090b6530d4af7f5bd219e0be51d421731 (patch)
tree0ce6fc875717e011cb828aaa23856c3aa38bfe45 /PKGBUILD
parentb4126180fa35087356434dc29d5a938c2f8e237d (diff)
downloadaur-c4df073090b6530d4af7f5bd219e0be51d421731.tar.gz
Properly replace SUBSONIC_HOME
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e3deda1205b..1e3f7824b85 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
pkgname=subsonic-beta
pkgver=6.1.beta2
epoch=3 # 5.1.beta sorts higher than 5.1
-pkgrel=2
+pkgrel=3
pkgdesc="A free, web-based media streamer and jukebox."
arch=('any')
url="http://subsonic.org/"
@@ -29,7 +29,7 @@ package() {
mkdir -p $pkgdir/var/playlists
mkdir -p $pkgdir/usr/lib/systemd/system
mkdir -p $pkgdir/etc/
- sed -i 's/SUBSONIC_HOME=\/var\/subsonic/SUBSONIC_HOME=\/var\/lib\/subsonic/' subsonic.sh
+ sed -i 's/SUBSONIC_HOME=\${SUBSONIC_HOME:-\/var\/subsonic}/SUBSONIC_HOME=\${SUBSONIC_HOME:-\/var\/lib\/subsonic\/}/' subsonic.sh
cp * $pkgdir/var/lib/subsonic
rm $pkgdir/var/lib/subsonic/{subsonic.bat,subsonic-${pkgver}-standalone.tar.gz}
ln -fs /var/lib/subsonic/subsonic.sh $pkgdir/etc/subsonic.conf