1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-16 05:45:02 -05:00
arch-ppa/src/lgogdownloader/PKGBUILD

41 lines
846 B
Bash
Executable File

# Maintainer: Joe Davison <joe@warhaggis.com>
pkgname=lgogdownloader
pkgver=3.3
pkgrel=4
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' 'tinyxml2' 'htmlcxx' 'curl')
makedepends=('help2man' 'cmake')
source=("http://sites.google.com/site/gogdownloader/$pkgname-$pkgver.tar.gz")
sha256sums=('8bb7a37b48f558bddeb662ebac32796b0ae11fa2cc57a03d48b3944198e800ce')
prepare() {
cd $srcdir/$pkgname-$pkgver
if [ ! -d "build" ]; then
mkdir build
else
rm -rf build/*
fi
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
}
build() {
cd $srcdir/$pkgname-$pkgver/build
make
}
package() {
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}