# Maintainer: Graham Edgecombe pkgname=openrct2-git pkgver=r4403.f16b740 pkgrel=1 pkgdesc='Open source clone of RollerCoaster Tycoon 2' arch=('any') url='https://github.com/IntelOrca/OpenRCT2' license=('GPL3') depends=('wine' 'mingw-w64-sdl2' 'gtk-update-icon-cache' 'desktop-file-utils' 'mingw-w64-sdl2_ttf') 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' 'orctlibs.zip::https://download.openrct2.website/dev/lib/mingw' 'openrct2' 'openrct2.desktop') sha256sums=('SKIP' '8892b09fe99b601d72e54cc3f56894bad3b11f28df9d52adecd982a2e393efa8' '27db282994fe8e7ae04582704c949d9dab1959409c2905e55573418d409c2646' 'b916d4a9f56af82693ba21f43e09ababe9f132fd7c3b78efa1b4387ee1bc3a4d') # 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=0 _dlls=(SDL2.dll libwinpthread-1.dll SDL2_ttf.dll libfreetype-6.dll libbz2-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" # Copy local libraries into lib. # TODO ideally we'd package everything up in orctlibs.zip/local properly # instead of compiling an embedded copy in this package. if [ ! -d lib ]; then cp -r "$srcdir/local" lib fi # 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