diff options
author | Tids | 2016-05-09 12:25:38 +0200 |
---|---|---|
committer | Tids | 2016-05-09 12:25:38 +0200 |
commit | d1789ea49f996d86829c8b196aa5d671fec4c833 (patch) | |
tree | 798ae5ad0422fd0ec77ad1cc1be74370652e18ab | |
parent | 2067d7bfc116c7509f77cb4cb4042adad3cf08b6 (diff) | |
download | aur-d1789ea49f996d86829c8b196aa5d671fec4c833.tar.gz |
Workaround the broken DDL ++ new PRO version
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | change.log | 10 |
3 files changed, 46 insertions, 16 deletions
@@ -1,6 +1,6 @@ pkgbase = pokemon-revolution-online-bin pkgdesc = A free-to-play, fan-made, MMO game that is predicated around the official Pokémon games. - pkgver = 0.94.20160327 + pkgver = 0.94.20160509 pkgrel = 1 url = http://pokemon-revolution-online.net changelog = change.log @@ -9,15 +9,13 @@ pkgbase = pokemon-revolution-online-bin depends = gcc-libs-multilib optdepends = gtk2: required for the Unity ScreenSelector plugin conflicts = pokemon-revolution-online - source = http://tiny.cc/PROLinux source = net.pokemon-revolution-online.desktop source = change.log source = pokemonrevolution source = copyright source = pokemonrevolution.svg - md5sums = 4ca6f28da8d25670ac4b13146dd38a3c md5sums = 3215173b6f1673d868e71f1d953ed9d2 - md5sums = d791b50b1432a9dd8ca5e342e03a991c + md5sums = 1a6d6b3aeee7c84cd38cafb715ffec8a md5sums = 1b667f450341675b6b2c1750e034516c md5sums = 0efcd0393015ff149217f9ced4670513 md5sums = 8446ead3097e1b87e3a63b667d956569 @@ -1,6 +1,6 @@ # Maintainer: Fabian <plusfabi[AT+thegoogleadress]> pkgname=pokemon-revolution-online-bin -pkgver=0.94.20160327 +pkgver=0.94.20160509 pkgrel=1 pkgdesc="A free-to-play, fan-made, MMO game that is predicated around the official Pokémon games." arch=('x86_64') @@ -10,10 +10,9 @@ depends=('gcc-libs-multilib') optdepends=('gtk2: required for the Unity ScreenSelector plugin') conflicts=('pokemon-revolution-online') changelog="change.log" -source=('http://tiny.cc/PROLinux' 'net.pokemon-revolution-online.desktop' 'change.log' 'pokemonrevolution' 'copyright' 'pokemonrevolution.svg') -md5sums=('4ca6f28da8d25670ac4b13146dd38a3c' - '3215173b6f1673d868e71f1d953ed9d2' - 'd791b50b1432a9dd8ca5e342e03a991c' +source=('net.pokemon-revolution-online.desktop' 'change.log' 'pokemonrevolution' 'copyright' 'pokemonrevolution.svg') +md5sums=('3215173b6f1673d868e71f1d953ed9d2' + '1a6d6b3aeee7c84cd38cafb715ffec8a' '1b667f450341675b6b2c1750e034516c' '0efcd0393015ff149217f9ced4670513' '8446ead3097e1b87e3a63b667d956569') @@ -26,6 +25,34 @@ package() { ## directory files naming is usually VNAMING_Date, binary VNAMING.x86_64 __VNAMING="PROLinux64_94" + __DLDIR=$(xdg-user-dir DOWNLOAD) + __DDLA="http://tiny.cc/PROLinux" + __DDLFN="PRO94_3_Linux.zip" + __DDLFMD5="2badf060f386cd06dd8160fa23950bde" + + ## "Something's missing"? -> No One Cares - Atreyu c; + if [ ! -f ${__DLDIR}/${__DDLFN} ]; then + { + echo "${__DLDIR}/${__DDLFN} not found, please download it" + echo "Download: ${__DDLA}" + exit 1 + } + fi + ## lets check the md5sum + if [ "$(md5sum ${__DLDIR}/${__DDLFN} | awk '{print $1}')" != "${__DDLFMD5}" ]; then + { + echo "${__DLDIR}/${__DDLFN} MD5 MISMATCH, please remove the old file before downloading" + echo "rm \"${__DLDIR}/${__DDLFN}\"" + echo "Download: ${__DDLA}" + echo + echo "maybe this pkgbuild is out-of-date. please report this:" + echo "https://aur.archlinux.org/packages/pokemon-revolution-online-bin/" + exit 1 + } + fi + + bsdtar -x -p -f "${__DLDIR}/${__DDLFN}" + # CREATE FOLDERS ## copy the folderstructure of the original without content. /usr/bin/find "." -type d -exec \ @@ -66,9 +93,10 @@ package() { # COPYRIGHT FILE ## move the copyright text install -D -m644 "${srcdir}/copyright" \ - "${pkgdir}/usr/share/licenses/pokemon-revolution-online/copyright" + "${pkgdir}/usr/share/licenses/pokemon-revolution-online-bin/copyright" +} - # RM PROLinux - ## lets remove the zip file since it'll save some space and we dont need it anymore - rm ../PROLinux +post_install() { + xdg-icon-resource forceupdate + update-desktop-database -q } diff --git a/change.log b/change.log index e687c23f8ee5..4ebfcdf1e394 100644 --- a/change.log +++ b/change.log @@ -1,12 +1,16 @@ Game Changelog http://pokemon-revolution-online.net/Forum/viewtopic.php?f=14&t=4563 -Packaging -switch from AUR pokemon-revolution-online to pokemon-revolution-online-bin -cause we dont have the sources, its binary only +0.94.20160509-1 +* new version of PRO +* no automatic mode anymore, you have to download it yourself -> since DDL is always down +* added a postinstall part to update *.desktop files + 0.94.20160327-1 * PRO 0.94 +* switch from AUR pokemon-revolution-online to pokemon-revolution-online-bin +cause we dont have the sources, its binary only 0.93_3.20160206-2 * remove that X-DBUS-StartupType in *.desktop |