[arch-commits] Commit in openrct2/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Apr 15 15:56:36 UTC 2021
Date: Thursday, April 15, 2021 @ 15:56:35
Author: felixonmars
Revision: 919122
archrelease: copy trunk to community-staging-x86_64
Added:
openrct2/repos/community-staging-x86_64/
openrct2/repos/community-staging-x86_64/PKGBUILD
(from rev 919120, openrct2/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: openrct2/repos/community-staging-x86_64/PKGBUILD (from rev 919120, openrct2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-04-15 15:56:35 UTC (rev 919122)
@@ -0,0 +1,46 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Graham Edgecombe <graham at grahamedgecombe.com>
+
+pkgname=openrct2
+pkgver=0.3.3
+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' 'speexdsp' 'fontconfig'
+ 'libpng' 'openssl' 'libzip' 'icu' 'duktape' 'benchmark')
+makedepends=('cmake' 'nlohmann-json')
+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=('71f9d1ae8477e1e9881a6f9759bddac71346e8ba42238d22514ae3d872b54fd2')
+
+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"
+}
More information about the arch-commits
mailing list