git » openttd.git » commit a31a55f

upgpkg: 1.11.2-2

author Alexander Rødseth
2021-05-24 21:40:22 UTC
committer Alexander Rødseth
2021-05-24 21:40:22 UTC
parent 9414d1807c53a012ccfb4ebf3cc6963facdc7f38

upgpkg: 1.11.2-2

PKGBUILD +6 -5

diff --git a/PKGBUILD b/PKGBUILD
index e4c7705..c7579ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=openttd
 pkgver=1.11.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Engine for running Transport Tycoon Deluxe'
 arch=(x86_64)
 url='https://www.openttd.org'
@@ -19,13 +19,14 @@ b2sums=('c71fd98a480566aede29f84afbd100b6d0dfa80311860907a7287d2d5bed74bd492c2b1
 build() {
   cmake \
     -B build \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_BINDIR=bin \
-    -DCMAKE_INSTALL_DATADIR=/usr/share \
-    -DGLOBAL_DATA_DIR=/usr/share/openttd \
+    -D CMAKE_BUILD_TYPE=Release \
+    -D CMAKE_INSTALL_PREFIX=/usr \
+    -D CMAKE_INSTALL_BINDIR=bin \
+    -D CMAKE_INSTALL_DATADIR=/usr/share \
     -G Ninja \
     -S $pkgname-$pkgver
   ninja -C build
+  cd build
 }
 
 package() {