[arch-commits] Commit in higan-gtk/trunk (PKGBUILD higan)
Maxime Gauduin
alucryd at archlinux.org
Thu Aug 6 06:20:49 UTC 2015
Date: Thursday, August 6, 2015 @ 08:20:49
Author: alucryd
Revision: 138000
Use zenity instead of xdialog
Modified:
higan-gtk/trunk/PKGBUILD
higan-gtk/trunk/higan
----------+
PKGBUILD | 7 +++----
higan | 11 ++++-------
2 files changed, 7 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-08-06 03:41:41 UTC (rev 137999)
+++ PKGBUILD 2015-08-06 06:20:49 UTC (rev 138000)
@@ -3,14 +3,13 @@
pkgname=higan-gtk
pkgver=094
-pkgrel=3
+pkgrel=4
pkgdesc='Nintendo multi-system emulator'
arch=('i686' 'x86_64')
url='http://byuu.org/'
license=('GPL3')
-depends=('libao' 'libpulse' 'libxv' 'openal' 'sdl' 'xdialog')
+depends=('libao' 'libpulse' 'libxv' 'openal' 'sdl' 'zenity')
makedepends=('mesa')
-optdepends=('beat: Delta patcher')
conflicts=('higan-qt')
source=("http://files.byuu.org/download/higan_v${pkgver}-source.tar.xz"
'higan-makefile.patch'
@@ -17,7 +16,7 @@
'higan')
sha256sums=('5e149df9d50c1066eb97c0d66665428d75304da782bba5a87078b87fc311151b'
'5069d4847ec6cbeb2b1633f2538b7402c1ab27b31dd2b0d48ee7b617f361db6a'
- 'c799232a0f67c4b7f40fc6ad05325a6c04e86d78e40f361d02f168a16d11d048')
+ 'b58e312a903c99a37101d5c62c96e551caab7abf9c07f23eaf5a10b2c1d03df5')
prepare() {
cd higan_v${pkgver}-source
Modified: higan
===================================================================
--- higan 2015-08-06 03:41:41 UTC (rev 137999)
+++ higan 2015-08-06 06:20:49 UTC (rev 138000)
@@ -1,13 +1,10 @@
#!/bin/sh
-# Shared folders workaround
+# Keep config up to date
cp -ru /usr/share/higan ~/.config/
-# Check for profiles and prompt user with a GUI
-[ -e /usr/bin/higan-accuracy ] && tag1=accuracy
-[ -e /usr/bin/higan-balanced ] && tag2=balanced
-[ -e /usr/bin/higan-performance ] && tag3=performance
-profile="$(Xdialog --stdout --no-tags --title "higan" --radiolist "Choose a profile" 0 0 0 "$tag1" "Accuracy" off "$tag2" "Balanced" off "$tag3" "Performance" off)"
+# Prompt for profile
+profile="$(zenity --list --radiolist --title 'Please select a profile' --column '' --column '' FALSE 'accuracy' TRUE 'balanced' FALSE 'performance')"
# Launch selected profile
-exec higan-$profile "$@"
+[[ -n $profile ]] && exec higan-$profile "$@"
More information about the arch-commits
mailing list