void-packages/srcpkgs/LGOGDownloader/template

30 lines
1003 B
Bash

# Template file for 'LGOGDownloader'
pkgname=LGOGDownloader
version=3.5
revision=2
wrksrc="lgogdownloader-${version}"
build_style=cmake
hostmakedepends="pkg-config"
makedepends="htmlcxx-devel tinyxml2-devel libcurl-devel liboauth-devel
rhash-devel jsoncpp-devel boost-devel libressl-devel zlib-devel"
short_desc="Open source downloader for GOG.com games that uses the GOG.com API"
maintainer="RunningDroid <runningdroid@zoho.com>"
license="WTFPL"
homepage="https://github.com/Sude-/lgogdownloader"
distfiles="https://github.com/Sude-/lgogdownloader/archive/v${version}.tar.gz"
checksum=a7493f89e80796a4870d8fbc7996ff836b614a81af1471fc67025a4b194f28be
if [ -z "$CROSS_BUILD" ]; then
hostmakedepends+=" help2man"
fi
case "$XBPS_TARGET_MACHINE" in
armv6*|ppc|ppc-musl) makedepends+=" libatomic-devel" # Need libatomic for __atomic_fetch_add_8 etc.
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv6*|ppc|ppc-musl) sed -i 's/PRIVATE ${ZLIB_LIBRARIES}/\0\n atomic/' CMakeLists.txt
esac
}