diff options
author | Yigit Sever | 2022-05-23 13:05:48 +0300 |
---|---|---|
committer | Yigit Sever | 2022-05-23 13:05:48 +0300 |
commit | dbd6c41c3ecf37b587b7210d74e32d4fffcc3e2a (patch) | |
tree | af9074e8cbb4ef6dcb093703f88bd8151c2d4b30 /serviio | |
parent | ce9f9de1ae782f85cb487aabc5eaed00140d780a (diff) | |
download | packages-dbd6c41c3ecf37b587b7210d74e32d4fffcc3e2a.tar.gz packages-dbd6c41c3ecf37b587b7210d74e32d4fffcc3e2a.tar.bz2 packages-dbd6c41c3ecf37b587b7210d74e32d4fffcc3e2a.zip |
serviio: better shebang and POSIX comp
Diffstat (limited to 'serviio')
-rw-r--r-- | serviio/.SRCINFO | 4 | ||||
-rw-r--r-- | serviio/PKGBUILD | 4 | ||||
-rw-r--r-- | serviio/serviio.sh | 9 |
3 files changed, 8 insertions, 9 deletions
diff --git a/serviio/.SRCINFO b/serviio/.SRCINFO index d553c3d..c79b1e3 100644 --- a/serviio/.SRCINFO +++ b/serviio/.SRCINFO | |||
@@ -1,7 +1,7 @@ | |||
1 | pkgbase = serviio | 1 | pkgbase = serviio |
2 | pkgdesc = Free DLNA media server | 2 | pkgdesc = Free DLNA media server |
3 | pkgver = 2.2.1 | 3 | pkgver = 2.2.1 |
4 | pkgrel = 1 | 4 | pkgrel = 2 |
5 | url = http://www.serviio.org/ | 5 | url = http://www.serviio.org/ |
6 | arch = any | 6 | arch = any |
7 | license = custom | 7 | license = custom |
@@ -13,7 +13,7 @@ pkgbase = serviio | |||
13 | source = serviio.desktop | 13 | source = serviio.desktop |
14 | source = serviio.png | 14 | source = serviio.png |
15 | sha256sums = b9145628cbf87f66f5c8813d3a75c3219026728ab0ffc174cf52ce7ac401b324 | 15 | sha256sums = b9145628cbf87f66f5c8813d3a75c3219026728ab0ffc174cf52ce7ac401b324 |
16 | sha256sums = 3824f315472f838f320decbcefabc07e00565212b9ba54d1f3ad0df00ceed648 | 16 | sha256sums = aacddfcde926bb7c9bbec59777b7c3ca44ef97a39258ef4033c34e83c69e9fe9 |
17 | sha256sums = 83d402a57ee31e48e70f9a8eb100468aaf1b0966974e9389fe4720e140cdc58d | 17 | sha256sums = 83d402a57ee31e48e70f9a8eb100468aaf1b0966974e9389fe4720e140cdc58d |
18 | sha256sums = ecf69649d3a68521a4c751ba9a337143f06258228635e6d458a33271995cdec0 | 18 | sha256sums = ecf69649d3a68521a4c751ba9a337143f06258228635e6d458a33271995cdec0 |
19 | sha256sums = 96f3fd953d77e5400714d9b20dc83d43ed43497afdeff43e58e273b3d3d87d1d | 19 | sha256sums = 96f3fd953d77e5400714d9b20dc83d43ed43497afdeff43e58e273b3d3d87d1d |
diff --git a/serviio/PKGBUILD b/serviio/PKGBUILD index 114f306..04a4714 100644 --- a/serviio/PKGBUILD +++ b/serviio/PKGBUILD | |||
@@ -3,7 +3,7 @@ | |||
3 | # Contributor: Seb Deligny | 3 | # Contributor: Seb Deligny |
4 | pkgname=serviio | 4 | pkgname=serviio |
5 | pkgver=2.2.1 | 5 | pkgver=2.2.1 |
6 | pkgrel=1 | 6 | pkgrel=2 |
7 | pkgdesc="Free DLNA media server" | 7 | pkgdesc="Free DLNA media server" |
8 | arch=('any') | 8 | arch=('any') |
9 | url="http://www.serviio.org/" | 9 | url="http://www.serviio.org/" |
@@ -15,7 +15,7 @@ source=(http://download.serviio.org/releases/serviio-${pkgver}-linux.tar.gz | |||
15 | $pkgname.desktop | 15 | $pkgname.desktop |
16 | $pkgname.png) | 16 | $pkgname.png) |
17 | sha256sums=('b9145628cbf87f66f5c8813d3a75c3219026728ab0ffc174cf52ce7ac401b324' | 17 | sha256sums=('b9145628cbf87f66f5c8813d3a75c3219026728ab0ffc174cf52ce7ac401b324' |
18 | '3824f315472f838f320decbcefabc07e00565212b9ba54d1f3ad0df00ceed648' | 18 | 'aacddfcde926bb7c9bbec59777b7c3ca44ef97a39258ef4033c34e83c69e9fe9' |
19 | '83d402a57ee31e48e70f9a8eb100468aaf1b0966974e9389fe4720e140cdc58d' | 19 | '83d402a57ee31e48e70f9a8eb100468aaf1b0966974e9389fe4720e140cdc58d' |
20 | 'ecf69649d3a68521a4c751ba9a337143f06258228635e6d458a33271995cdec0' | 20 | 'ecf69649d3a68521a4c751ba9a337143f06258228635e6d458a33271995cdec0' |
21 | '96f3fd953d77e5400714d9b20dc83d43ed43497afdeff43e58e273b3d3d87d1d') | 21 | '96f3fd953d77e5400714d9b20dc83d43ed43497afdeff43e58e273b3d3d87d1d') |
diff --git a/serviio/serviio.sh b/serviio/serviio.sh index 451a645..3293258 100644 --- a/serviio/serviio.sh +++ b/serviio/serviio.sh | |||
@@ -1,10 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | if [ $UID -eq 0 ] | 3 | if [ "$(id -u)" -eq "0" ]; then |
4 | then | 4 | if [ -f /etc/profile.d/jdk.sh ]; then |
5 | if [[ -f /etc/profile.d/jdk.sh ]]; then | ||
6 | . /etc/profile.d/jdk.sh | 5 | . /etc/profile.d/jdk.sh |
7 | elif [[ -f /etc/profile.d/jre.sh ]]; then | 6 | elif [ -f /etc/profile.d/jre.sh ]; then |
8 | . /etc/profile.d/jre.sh | 7 | . /etc/profile.d/jre.sh |
9 | fi | 8 | fi |
10 | export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH | 9 | export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH |