Package Details: lgogdownloader 2.23-1

Package Base: lgogdownloader
Description: An open source downloader for GOG.com games, uses the GOG.com API
Upstream URL: https://sites.google.com/site/gogdownloader/
Category: games
Licenses: WTFPL
Submitter: tea
Maintainer: tea
Last Packager: tea
Votes: 14
First Submitted: 2012-08-01 22:40
Last Updated: 2015-05-17 21:35

Latest Comments

Comment by carstene1ns

2015-02-20 04:25

In addition to the previous comment: You can also use the commit as patch directly (just add '.patch' to it's url).
Example, untested:

source=(...
jsonpp-include.patch::https://github.com/Sude-/lgogdownloader/commit/f039db5c6572c4fb70d228d511c4d76c1deb517c.patch)

prepare() {
cd $srcdir/$pkgname-$pkgver
patch -Np1 ../jsonpp-include.patch
}

Comment by eduardbaer

2015-02-19 21:16

This PKGBUILD works, it basically applies this commit:
https://github.com/Sude-/lgogdownloader/commit/f039db5c6572c4fb70d228d511c4d76c1deb517c



# Maintainer: Joe Davison <joe@warhaggis.com>

pkgname=lgogdownloader
pkgver=2.20
pkgrel=2
pkgdesc="An open source downloader for GOG.com games, uses the GOG.com API"
url="https://sites.google.com/site/gogdownloader/"
arch=(i686 x86_64)
license=(WTFPL)
depends=('boost' 'jsoncpp' 'liboauth' 'rhash' 'tinyxml' 'htmlcxx' 'curl')
makedepends=('help2man')
source=(http://sites.google.com/site/gogdownloader/$pkgname-$pkgver.tar.gz)
sha256sums=('3219d5fc2582b1e3b52226eb37867ed6d5f38106f3037107a75a59545f7c95ce')

build() {
cd $srcdir/$pkgname-$pkgver

sed -i 's+^\(INC .*$\)+\1 -I/usr/include/jsoncpp+' Makefile
sed -i 's+jsoncpp/\(json/json.h\)+\1+' */*.h
sed -i 's+jsoncpp/\(json/json.h\)+\1+' */*.cpp

# Set to debug for more output
make release

}

package() {
cd $srcdir/$pkgname-$pkgver

make PREFIX=$pkgdir/usr install

# install -D -m 755 $srcdir/$pkgname-$pkgver/man/$pkgname.1.gz \
# $pkgdir/usr/share/man/man1/$pkgname.1.gz
}

Comment by MindLikeWater

2015-02-10 10:21

I have the same compiling problem as InspMustache. Any fix in sight?

Comment by InspMustache

2015-02-05 15:29

Doesn't compile for me anymore since the latest update. Apparently json.h is missing.

make: *** [obj/Release/src/downloader.o] Error 1
In file included from include/gamedetails.h:5:0,
from include/api.h:11,
from include/downloader.h:25,
from main.cpp:7:
include/gamefile.h:8:31: fatal error: jsoncpp/json/json.h: No such file or directory
#include <jsoncpp/json/json.h>
^
compilation terminated.
Makefile:119: recipe for target 'obj/Release/main.o' failed
make: *** [obj/Release/main.o] Error 1
src/util.cpp:12:31: fatal error: jsoncpp/json/json.h: No such file or directory
#include <jsoncpp/json/json.h>
^
compilation terminated.
Makefile:131: recipe for target 'obj/Release/src/util.o' failed
make: *** [obj/Release/src/util.o] Error 1

Comment by chungy

2014-12-10 00:32

Thanks for updating, but your package still invokes a manual "install" line and still does not use PREFIX and DESTDIR properly. Please fix :(

Comment by chungy

2014-11-30 08:13

The "make install" line doesn't install the files to proper locations. You need to set DESTDIR and PREFIX appropriately, and also you should use quotations around environment variables to protect building under certain path names. Fixed PKGBUILD example: http://pastebin.com/TKGGcftU

Comment by tea

2014-09-21 12:35

Lots of new features in 2.18, better management of download locations etc. Full changelog as usual at the forum thread: http://www.gog.com/forum/general/lgogdownloader_gogdownloader_for_linux/post476

Comment by carstene1ns

2014-08-23 12:10

You can use 'make install' for the release build starting from the next version, it supports setting DESTDIR now.

Comment by tea

2014-08-22 19:43

@MindLikeWater You must remove the 'no-cover' option from ~/.config/lgogdownloader/config.cfg

Comment by MindLikeWater

2014-08-22 15:16

I currently cannot build the package:

help2man -N -i man/lgogdownloader.supplemental.groff -o man/lgogdownloader.1 bin/Release/lgogdownloader
help2man: can't get `--help' info from bin/Release/lgogdownloader
Try `--no-discard-stderr' if option outputs to stderr
Makefile:99: recipe for target 'after_release' failed
make: *** [after_release] Error 1

Comment by itoijala

2014-08-22 12:01

Please also include the man page in the package.

Comment by tea

2013-03-19 21:54

Updated to 2.3, also a PKGBUILD for the -git version is at https://aur.archlinux.org/packages/lgogdownloader-git/

Comment by tea

2013-03-11 22:49

And it's fixed again.

Comment by tea

2013-03-11 18:03

Unfortunately the downloader is not working at the moment due to changes in the GOG API. The developer is working on fixing this. Follow developments here: http://www.gog.com/forum/general/lgogdownloader_gogdownloader_for_linux/post100

Comment by tea

2013-01-31 18:32

And we're already up to 1.15.

Comment by tea

2013-01-31 13:11

Sorry that took me far too long - it's been one of those weeks! The PKGBUILD is now updated and works with jsoncpp like it should.

Anonymous comment

2013-01-24 10:45

Updated PKGBUILD for version 1.14 which works with jsoncpp version 0.5.0

# Maintainer: Joe Davison <joedavison.davison@gmail.com>

pkgname=lgogdownloader
pkgver=1.14
pkgrel=1
pkgdesc="An open source downloader for GOG.com games, uses the GOG.com API"
url="http://www.gog.com/en/forum/general/lgogdownloader_gogdownloader_for_linux"
arch=(i686 x86_64)
license=(WTFPL)
depends=('boost' 'jsoncpp' 'liboauth' 'rhash' 'tinyxml' 'htmlcxx' 'curl')
source=(http://sites.google.com/site/gogdownloader/$pkgname-$pkgver.tar.gz)
sha256sums=('d3545d889510ec21b9b5c78267a379c2fff2865f92ab3885ba096c3401ec7162')

build() {
cd "$srcdir/$pkgname-$pkgver"

make release

}

package() {
install -D -m 755 $srcdir/$pkgname-$pkgver/bin/Release/$pkgname \
$pkgdir/usr/bin/lgogdownloader
}

Comment by smls

2013-01-22 11:04

I think you should not update to a version that requires unreleased versions of libraries. No one benefits from a PKGBUILD that does not build.
Better keep it at a version that builds, and upgrade only once all requirements can be met.

Comment by tea

2013-01-05 23:09

Updated to 1.12. Note that it won't build without modifying the jsoncpp package to install jsoncpp version 0.6.0-rc2.

Here's a PKGBUILD to do just that (you probably shouldn't use this):
pkgname=jsoncpp
pkgver=0.6.0
pkgrel=2
pkgdesc="A JSON C++ library"
url="http://jsoncpp.sourceforge.net/"
license="Public"
arch=('i686' 'x86_64')
makedepends=('scons' 'gcc')
depends=('gcc-libs')
source=("http://sourceforge.net/projects/jsoncpp/files/jsoncpp/0.6.0-rc2/jsoncpp-src-${pkgver}-rc2.tar.gz/download")
md5sums=('363e2f4cbd3aeb63bf4e571f377400fb')

build(){
cd ${startdir}/src/${pkgname}-src-${pkgver}-rc2
scons platform=linux-gcc

mkdir -p ${pkgdir}/usr/include/jsoncpp
cp -r include/json ${pkgdir}/usr/include/jsoncpp/json

mkdir -p ${pkgdir}/usr/lib
cp buildscons/linux-gcc-*/src/lib_json/libjson_linux-gcc*libmt.so ${pkgdir}/usr/lib/
cd ${pkgdir}/usr/lib/
ln -sf libjson_linux-gcc-*_libmt.so libjsoncpp.so

}

Comment by tea

2012-12-15 23:07

Woah! So sorry I forgot about this. I will have the updated PKGBUILD up shortly!

Comment by glaville

2012-12-15 12:16

Here is an updated PKGBUILD for the version 1.11:

# Maintainer: Joe Davison <joedavison.davison@gmail.com>

pkgname=lgogdownloader
pkgver=1.11
pkgrel=1
pkgdesc="An open source downloader for GOG.com games, uses the GOG.com API"
url="http://www.gog.com/en/forum/general/lgogdownloader_gogdownloader_for_linux"
arch=(i686 x86_64)
license=(WTFPL)
depends=(boost jsoncpp-fixed liboauth rhash tinyxml htmlcxx curl)
source=(http://sites.google.com/site/gogdownloader/$pkgname-$pkgver.tar.gz)
sha256sums=('b2b595c201f52d2fffc6b71b22814bd79f40090bd01e10b5a0750c0c16608acf')

build() {
cd "$srcdir/$pkgname-$pkgver"

# fix Arch-specific include error
# we're gonna backup api.h first just in case something explodes
mv include/api.h include/api.h.bak
sed '/jsoncpp/ c\\#include \<jsoncpp\/json.h\>' include/api.h.bak > include/api.h

# we also have to do the same on http.h...
mv include/http.h include/http.h.bak
sed '/jsoncpp/ c\\#include \<jsoncpp\/json.h\>' include/http.h.bak > include/http.h

make release

}

package() {
install -D -m 755 $srcdir/$pkgname-$pkgver/bin/Release/$pkgname \
$pkgdir/usr/bin/lgogdownloader
}