Date: Friday, September 18, 2020 @ 16:40:14 Author: jelle Revision: 710683
Update the arch standards Added: openrct2/trunk/PKGBUILD ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-09-18 16:40:14 UTC (rev 710683) @@ -0,0 +1,46 @@ +# Maintainer: Jelle van der Waa <je...@archlinux.org> +# Contributor: Graham Edgecombe <gra...@grahamedgecombe.com> + +pkgname=openrct2 +pkgver=0.3.0 +pkgrel=2 +pkgdesc='Open source re-implementation of Roller Coaster Tycoon 2 (requires full + copy of the game)' +arch=('x86_64') +url='https://openrct2.io' +license=('GPL3') +depends=('hicolor-icon-theme' 'sdl2' 'curl' 'jansson' 'speexdsp' 'fontconfig' + 'libpng' 'openssl' 'libzip' 'icu' 'duktape' 'benchmark') +makedepends=('cmake' 'rapidjson') +optdepends=('zenity: System dialog box support (GNOME/GTK)' + 'kdialog: System dialog box support (KDE)' + 'alsa-lib: ALSA audio driver' + 'libpulse: PulseAudio audio driver') +source=($pkgname-$pkgver.tar.gz::https://github.com/OpenRCT2/OpenRCT2/archive/v$pkgver.tar.gz) +sha256sums=('7c814732c7ec9b470618b1ae39c9935a9bfb995562f906f75e3ec3c8d71f2563') + +build() { + cd "$srcdir/OpenRCT2-$pkgver" + + mkdir -p build + cd build + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \ + -DSTATIC=off -DWITH_TESTS=on -DCMAKE_INSTALL_LIBDIR=/usr/lib .. + make all g2 +} + +check() { + cd "$srcdir/OpenRCT2-$pkgver" + + mkdir -p build + make test +} + +package() { + cd "$srcdir/OpenRCT2-$pkgver/build" + + make DESTDIR="$pkgdir" install + + rm "$pkgdir/usr/lib/libopenrct2.a" + rmdir "$pkgdir/usr/lib" +}