# Maintainer: Graham Edgecombe pkgname=openrct2-git pkgver=r3722.78104bc pkgrel=1 pkgdesc='Open source clone of RollerCoaster Tycoon 2' arch=('i686' 'x86_64') url='https://github.com/IntelOrca/OpenRCT2' license=('GPL3') depends=('wine' 'mingw-w64-sdl2' 'gtk-update-icon-cache' 'desktop-file-utils') makedepends=('git' 'cmake' 'mingw-w64-gcc') conflicts=('openrct2') provides=('openrct2') options=('!buildflags') install=openrct2.install source=("$pkgname"::'git://github.com/IntelOrca/OpenRCT2.git#branch=develop' 'openrct2' 'openrct2.desktop') md5sums=('SKIP' 'b750eaf997a27e981232b21a68fa868e' '035a407b940492c584c72f4f59f1bd69') # Enable Twitch support. This pulls in lots of mingw-w64-* packages from the AUR # which takes a while to build. If you don't need Twitch support, it's probably # desirable to set this to 0 before building. _enable_twitch=1 _dlls=(SDL2.dll libwinpthread-1.dll) if [ $_enable_twitch -eq 1 ]; then depends+=('mingw-w64-curl' 'mingw-w64-jansson') _dlls+=(libcurl-4.dll libjansson-4.dll libeay32.dll libgcc_s_sjlj-1.dll libidn-11.dll libssh2-1.dll ssleay32.dll zlib1.dll libiconv-2.dll libintl-8.dll) fi pkgver() { cd "$srcdir/$pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd "$srcdir/$pkgname" # The ArchLinux jansson header files are directly under # /usr/i686-w64-mingw32/include. find src \( -name '*.c' -or -name '*.h' -or -name '*.cpp' \) \ -exec sed -i 's@#include