diff options
author | Rodney van den Velden | 2023-08-21 11:41:41 +0200 |
---|---|---|
committer | Rodney van den Velden | 2023-08-21 11:41:41 +0200 |
commit | aa8bb0b1051f54bf87996c074102a692e58fbec1 (patch) | |
tree | f8906774da1e4e559d8c9ad35bc1ff62f43caeb1 | |
parent | 807b172432c3bf0d480f400ab1f8a649ae2dd778 (diff) | |
download | aur-aa8bb0b1051f54bf87996c074102a692e58fbec1.tar.gz |
23.07.09 rel 2
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | PKHeX.desktop | 11 | ||||
-rw-r--r-- | PKHeX.sh | 2 | ||||
-rw-r--r-- | icon.png (renamed from PKHeX.png) | bin | 4004 -> 4004 bytes | |||
-rw-r--r-- | launcher | 55 | ||||
-rw-r--r-- | pkhex.desktop | 8 |
7 files changed, 87 insertions, 60 deletions
@@ -1,24 +1,17 @@ pkgbase = pkhex-bin pkgdesc = Pokémon core series save editor, programmed in C#. - pkgver = 22.06.26 - pkgrel = 1 - url = https://projectpokemon.org/home/files/file/1-pkhex/ + pkgver = 23.07.09 + pkgrel = 2 + url = https://github.com/kwsch/PKHeX arch = any license = GPL - depends = mono - provides = pkhex + depends = wine + depends = winetricks conflicts = pkhex conflicts = pkhex-git - options = !strip - backup = opt/PKHeX/PKHeX.exe.config - backup = opt/PKHeX/PKHeX.Core.dll.config - source = https://dominikbodi.de/downloads/PKHeX-22.06.26.tar.gz - source = PKHeX.sh - source = PKHeX.desktop - source = PKHeX.png - sha256sums = 6d0a939418db8a9d84bff621090ddd5274b6f57170c18c0f1ee4c113a5ad37cb - sha256sums = 6a13e35459c2ace9a32e34be76f0ec637c15b7481d4c280af7f148e0fae4ec88 - sha256sums = 6093975bcf0157b889a0f95321c6fc4895904d17a86c4d3bc51ede2e040d32ef - sha256sums = 688456b442d51a9cdcffeb053099f23e3333e492c5b9d9266e97da7cd077b89b + source = PKHeX.exe::https://downloads.dfagaming.nl/PKHeX.exe + source = launcher + sha256sums = 4b41ce0a74473e281de0b07e6b7a6346952afbd6606d57b71c7599d1c21ec8a7 + sha256sums = d54568414f5abad0b462f05a523c48b14afb1c44587189dcc497a81b73fe1b27 pkgname = pkhex-bin @@ -1,40 +1,24 @@ -# Maintainer: C. Dominik Bódi <dominik dot bodi at gmx dot de> -# Maintainer: jtmb <packaging at technologicalwizardry dot com> +# Maintainer: Rodney van den Velden <rodney@dfagaming.nl> + _pkgname=PKHeX pkgname=pkhex-bin -pkgver=22.06.26 -pkgrel=1 +pkgver=23.07.09 +pkgrel=2 pkgdesc="Pokémon core series save editor, programmed in C#." arch=(any) -url="https://projectpokemon.org/home/files/file/1-pkhex/" -license=('GPL') -depends=(mono) -provides=(pkhex) +url="https://github.com/kwsch/PKHeX" +license=(GPL) +depends=(wine winetricks) conflicts=(pkhex pkhex-git) -options=('!strip') -source=("https://dominikbodi.de/downloads/${_pkgname}-${pkgver}.tar.gz" - "PKHeX.sh" - "PKHeX.desktop" - "PKHeX.png") - -sha256sums=('6d0a939418db8a9d84bff621090ddd5274b6f57170c18c0f1ee4c113a5ad37cb' - '6a13e35459c2ace9a32e34be76f0ec637c15b7481d4c280af7f148e0fae4ec88' - '6093975bcf0157b889a0f95321c6fc4895904d17a86c4d3bc51ede2e040d32ef' - '688456b442d51a9cdcffeb053099f23e3333e492c5b9d9266e97da7cd077b89b') -backup=("opt/${_pkgname}/PKHeX.exe.config" - "opt/${_pkgname}/PKHeX.Core.dll.config") +source=("PKHeX.exe::https://downloads.dfagaming.nl/PKHeX.exe" + "launcher") +sha256sums=('4b41ce0a74473e281de0b07e6b7a6346952afbd6606d57b71c7599d1c21ec8a7' + 'd54568414f5abad0b462f05a523c48b14afb1c44587189dcc497a81b73fe1b27') package() { + install -D -m 755 "launcher" "${pkgdir}/usr/bin/pkhex" + install -D -m 644 "PKHeX.exe" "${pkgdir}/usr/share/pkhex/PKHeX.exe" - install -Dm644 "${_pkgname}.desktop" "$pkgdir/usr/share/applications/${_pkgname}.desktop" - install -Dm644 "${_pkgname}.png" "$pkgdir/usr/share/pixmaps/${_pkgname}.png" - install -Dm755 -- PKHeX.sh "$pkgdir/usr/bin/${_pkgname}" - install -Dm755 -- PKHeX.exe "$pkgdir/opt/${_pkgname}/PKHeX.exe" - - mkdir -p -- "$pkgdir/opt/${_pkgname}/bak" - mkdir -p -- "$pkgdir/opt/${_pkgname}/pkmdb" - chmod 777 -- "$pkgdir/opt/${_pkgname}/bak" - chmod 777 -- "$pkgdir/opt/${_pkgname}/pkmdb" - + install -D -m 644 "icon.png" "${pkgdir}/usr/share/pixmaps/pkhex.png" + install -D -m 644 "pkhex.desktop" "${pkgdir}/usr/share/applications/pkhex.desktop" } - diff --git a/PKHeX.desktop b/PKHeX.desktop deleted file mode 100644 index 1764f99b396a..000000000000 --- a/PKHeX.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Type=Application -Name=PKHeX -GenericName=PKHeX -Comment=Pokémon core series save editor -Exec=/usr/bin/PKHeX -Icon=/usr/share/pixmaps/PKHeX.png -Terminal=false -StartupNotify=false -Categories=Game; diff --git a/PKHeX.sh b/PKHeX.sh deleted file mode 100644 index 88dd5499087f..000000000000 --- a/PKHeX.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -mono /opt/PKHeX/PKHeX.exe $@ diff --git a/PKHeX.png b/icon.png Binary files differindex b675a02e85b6..b675a02e85b6 100644 --- a/PKHeX.png +++ b/icon.png diff --git a/launcher b/launcher new file mode 100644 index 000000000000..b0cdd77cce4f --- /dev/null +++ b/launcher @@ -0,0 +1,55 @@ +#!/bin/bash + +XDG_DATA_HOME="${XDG_DATA_HOME-${HOME}/.local/share}" +PKHEX_DATA_DIRECTORY="${PKHEX_DATA_DIRECTORY-${XDG_DATA_HOME}/pkhex}" +export WINEDEBUG="${WINEDEBUG--all}" +export WINEPREFIX="${WINEPREFIX-${XDG_DATA_HOME}/wineprefixes/pkhex}" + +if [ ! -d "${WINEPREFIX}" ]; then + echo 'Setting up the Wine prefix...' + winetricks -q --force 'dotnetdesktop7' + echo 'Completed setting up the Wine prefix.' +fi + +if [ ! -d "${PKHEX_DATA_DIRECTORY}" ]; then + echo 'Installing PKHeX...' + mkdir -p "${PKHEX_DATA_DIRECTORY}" + cd ${PKHEX_DATA_DIRECTORY} + cp /usr/share/pkhex/PKHeX.exe ./PKHeX.exe + wine PKHeX.exe + wineserver -w + echo 'Completed installing PKHeX.' + exit +fi + +case "$1" in + 'kill') + wineserver -k "$2" + ;; + 'winetricks') + shift 1 + winetricks "$@" + ;; + 'wine') + shift 1 + wine "$@" + ;; + '-h'|'--help'|'help') + echo 'Usage:' + printf '%s [command]\t\t\tRun PKHeX (with optional command)\n' "$(basename "$0")" + printf '%s kill [n]\t\t\tKill PKHeX (optinally with signal n)\n' "$(basename "$0")" + printf '%s wine [command]\t\tExecute Wine command on the Wine prefix (winecfg, regedit, ...)\n' "$(basename "$0")" + printf '%s winetricks [command]\t\tExecute Winetricks command on the Wine prefix\n' "$(basename "$0")" + printf '%s {-h --help help}\t\tDisplay this help\n' "$(basename "$0")" + ;; + 'update') + echo 'Updating' + cd ${PKHEX_DATA_DIRECTORY} + cp /usr/share/pkhex/PKHeX.exe ./PKHeX.exe + *) + # cd ${PKHEX_DATA_DIRECTORY} + cd / + wine ${PKHEX_DATA_DIRECTORY}/PKHeX.exe "$@" + wineserver -w + ;; +esac
\ No newline at end of file diff --git a/pkhex.desktop b/pkhex.desktop new file mode 100644 index 000000000000..91424532380d --- /dev/null +++ b/pkhex.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=PKHeX +Comment=Pokemon Save File Editor +Exec=pkhex +Terminal=false +Type=application +Icon=pkhex +Categories=Game
\ No newline at end of file |