games/lgogdownloader: Updated for version 2.28.

Signed-off-by: Marcel Saegebarth <marc@mos6581.de>
This commit is contained in:
Marcel Saegebarth 2016-05-30 08:33:12 +02:00 committed by Willy Sudiarto Raharjo
parent c91ed4b7ee
commit c0bc83850c
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 5 additions and 34 deletions

View file

@ -1,27 +0,0 @@
From 519cb78d38be04a3af79784b5326e21651ced6e1 Mon Sep 17 00:00:00 2001
From: Sude <lgogdownloader@gmail.com>
Date: Fri, 25 Mar 2016 23:09:17 +0200
Subject: [PATCH] Fix compiling with JsonCpp 1.7.1
---
src/util.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util.cpp b/src/util.cpp
index 4b98c45..3d9dfed 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -388,11 +388,11 @@ int Util::getTerminalWidth()
void Util::getDownloaderUrlsFromJSON(const Json::Value &root, std::vector<std::string> &urls)
{
if(root.size() > 0) {
- for(Json::ValueIterator it = root.begin() ; it != root.end() ; ++it)
+ for(Json::ValueConstIterator it = root.begin() ; it != root.end() ; ++it)
{
if (it.key() == "downloaderUrl")
{
- Json::Value& url = *it;
+ Json::Value url = *it;
urls.push_back(url.asString());
}
else

View file

@ -25,8 +25,8 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lgogdownloader
VERSION=${VERSION:-2.27}
BUILD=${BUILD:-2}
VERSION=${VERSION:-2.28}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -84,8 +84,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 <$CWD/fix-compiling-with-jsoncpp-1.7.1.patch
mkdir -p build
cd build
cmake \

View file

@ -1,8 +1,8 @@
PRGNAM="lgogdownloader"
VERSION="2.27"
VERSION="2.28"
HOMEPAGE="https://sites.google.com/site/gogdownloader/home/"
DOWNLOAD="https://sites.google.com/site/gogdownloader/lgogdownloader-2.27.tar.gz"
MD5SUM="395884f93f99274c0834f66f7d016b60"
DOWNLOAD="https://sites.google.com/site/gogdownloader/lgogdownloader-2.28.tar.gz"
MD5SUM="b182359d436a4ad79d1be70836428e13"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="htmlcxx jsoncpp liboauth rhash tinyxml"