diff options
author | Yigit Sever | 2022-05-20 03:08:15 +0300 |
---|---|---|
committer | Yigit Sever | 2024-07-05 16:16:58 +0300 |
commit | dc29e148d72a3e4954711db945a56efd363d3b00 (patch) | |
tree | 596db08638af48da729cc85d88e3f138602e89d4 | |
parent | 19900fecd65512f2d095fb3d266237a02b9a6415 (diff) | |
download | packages-dc29e148d72a3e4954711db945a56efd363d3b00.tar.gz packages-dc29e148d72a3e4954711db945a56efd363d3b00.tar.bz2 packages-dc29e148d72a3e4954711db945a56efd363d3b00.zip |
Better shebang and POSIX comp
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | serviio.sh | 9 |
3 files changed, 8 insertions, 9 deletions
@@ -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 |
@@ -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') |
@@ -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 |