# Maintainer: Graham Edgecombe pkgname=openrct2-git pkgver=r12327.0d52030b4 pkgrel=1 pkgdesc='Open source re-implementation of Roller Coaster Tycoon 2 (requires full copy of the game)' arch=('i686' 'x86_64' 'armv7h' 'aarch64') url='https://openrct2.website' license=('GPL3') depends=('hicolor-icon-theme' 'sdl2' 'sdl2_ttf' 'curl' 'jansson' 'speexdsp' 'fontconfig' 'libpng' 'openssl' 'libzip') makedepends=('git' 'cmake') optdepends=('zenity: System dialog box support (GNOME/GTK)' 'kdialog: System dialog box support (KDE)' 'alsa-lib: ALSA audio driver' 'libpulse: PulseAudio audio driver') conflicts=('openrct2') provides=('openrct2') install=openrct2.install source=("$pkgname"::'git+https://github.com/OpenRCT2/OpenRCT2.git#branch=develop') sha256sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "$srcdir/$pkgname" mkdir -p build cd build cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib -DWITH_TESTS=on -DDISABLE_RCT2_TESTS=on .. make all g2 } check() { cd "$srcdir/$pkgname/build" make test } package() { cd "$srcdir/$pkgname/build" make DESTDIR="$pkgdir" install }