aboutsummaryrefslogtreecommitdiff
path: root/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2020-07-25 07:55:39 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-08-29 10:08:40 +0700
commitf1c21b26d5e85490e3cbe55c84f21353e3e92994 (patch)
tree5c24f6ba91df4d111c960e0689dca55c731a750b /graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild
parenta8412054d9f7e1bc8c1493bbf888037a1b129899 (diff)
graphics/wine-nine-standalone: Updated for version 0.6.
It seems pkg-config is still not fixed for multilib... v1: Require pkgconf on multilib systems. v2: Updated for version 0.6. Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild')
-rw-r--r--graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild39
1 files changed, 24 insertions, 15 deletions
diff --git a/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild b/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild
index fdd90c3d9bf5..7fe308d1fadc 100644
--- a/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild
+++ b/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for wine-nine-standalone
-# Copyright 2019 Hunter Sezen California, USA
+# Copyright 2019-2020 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wine-nine-standalone
-VERSION=${VERSION:-0.5}
+VERSION=${VERSION:-0.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,19 +60,28 @@ exists () {
v=1
while [ $# -gt 0 ]; do
arg="$1"; shift
- case "$arg" in ''|*/) continue ;; esac
- x="${arg##*/}" z="${arg%/*}"
- [ ! -f "$z/$x" ] || [ ! -x "$z/$x" ] && [ "$z/$x" = "$arg" ] && continue
- [ "$x" = "$z" ] && [ -x "$z/$x" ] && [ ! -f "$arg" ] && z=
- p=":$z:$PATH"
- while [ "$p" != "${p#*:}" ]; do
- p="${p#*:}"; d="${p%%:*}"
- if [ -f "$d/$x" ] && [ -x "$d/$x" ]; then
- printf %s\\n "$d/$x"
- v=0
- break
- fi
- done
+ case "$arg" in
+ ''|*/ )
+ :
+ ;;
+ */* )
+ if [ -f "$arg" ] && [ -x "$arg" ]; then
+ printf %s\\n "$arg"
+ v=0
+ fi
+ ;;
+ * )
+ p=":$PATH"
+ while [ "$p" != "${p#*:}" ]; do
+ p="${p#*:}"; d="${p%%:*}/$arg"
+ if [ -f "$d" ] && [ -x "$d" ]; then
+ printf %s\\n "$d"
+ v=0
+ break
+ fi
+ done
+ ;;
+ esac
done
return $v
}