aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2020-10-28 11:32:02 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-10-31 11:15:47 +0700
commitc8775c5b3d6f1117f40a5732e1362da00461b566 (patch)
tree3697d32df6fe0dd8c9b1b80fc40e1572cfc0e00f /graphics
parent7bce5718fb25259da889903f54d3c491dd100534 (diff)
graphics/wine-nine-standalone: Updated for version 0.7.
Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild49
-rw-r--r--graphics/wine-nine-standalone/wine-nine-standalone.info6
2 files changed, 38 insertions, 17 deletions
diff --git a/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild b/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild
index 7fe308d1fadc9..5927c3191bf0d 100644
--- a/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild
+++ b/graphics/wine-nine-standalone/wine-nine-standalone.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wine-nine-standalone
-VERSION=${VERSION:-0.6}
+VERSION=${VERSION:-0.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,33 +57,54 @@ fi
set -eu
exists () {
- v=1
+ r=0; cwd="$(pwd)"
while [ $# -gt 0 ]; do
- arg="$1"; shift
+ v=1; arg="$1"; shift
case "$arg" in
''|*/ )
:
;;
- */* )
+ /* )
if [ -f "$arg" ] && [ -x "$arg" ]; then
printf %s\\n "$arg"
v=0
fi
;;
+ ./* )
+ if [ -f "$arg" ] && [ -x "$arg" ]; then
+ pre="$(cd -- "${arg%%/*}/" && pwd)"
+ printf %s\\n "${pre%/}/$arg"
+ v=0
+ fi
+ ;;
+ */* )
+ if [ -f "$arg" ] && [ -x "$arg" ]; then
+ printf %s\\n "$(cd -- "${arg%%/*}/.." && pwd)/$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
+ if [ -n "${PATH+x}" ]; then
+ p=":${PATH:-$cwd}"
+ while [ "$p" != "${p#*:}" ] && [ -n "${p#*:}" ]; do
+ p="${p#*:}"; x="${p%%:*}"; z="${x:-$cwd}"; d="${z%/}/$arg"
+ if [ -f "$d" ] && [ -x "$d" ]; then
+ case "$d" in
+ /* ) : ;;
+ ./* ) pre="$(cd -- "${d%/*}/" && pwd)"; d="${pre%/}/$d" ;;
+ * ) d="$(cd -- "${d%/*}/" && pwd)/$arg" ;;
+ esac
+ printf %s\\n "$d"
+ v=0
+ break
+ fi
+ done
+ fi
;;
esac
+ [ $v = 0 ] || r=1
done
- return $v
+ return $r
}
rm -rf $PKG
diff --git a/graphics/wine-nine-standalone/wine-nine-standalone.info b/graphics/wine-nine-standalone/wine-nine-standalone.info
index d9b0f34c1a48d..cb55c58bf5cb1 100644
--- a/graphics/wine-nine-standalone/wine-nine-standalone.info
+++ b/graphics/wine-nine-standalone/wine-nine-standalone.info
@@ -1,8 +1,8 @@
PRGNAM="wine-nine-standalone"
-VERSION="0.6"
+VERSION="0.7"
HOMEPAGE="https://github.com/iXit/wine-nine-standalone"
-DOWNLOAD="https://github.com/iXit/wine-nine-standalone/archive/v0.6/wine-nine-standalone-0.6.tar.gz"
-MD5SUM="edd1753caa9d281c5dba2d56e8a115f0"
+DOWNLOAD="https://github.com/iXit/wine-nine-standalone/archive/v0.7/wine-nine-standalone-0.7.tar.gz"
+MD5SUM="285d7d1ffa746ec4016e7f9244fe5842"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="meson wine"