git » openttd.git » commit 3638b18

upgpkg: 1.11.2-3

author Alexander Rødseth
2021-05-29 20:42:41 UTC
committer Alexander Rødseth
2021-05-29 20:42:41 UTC
parent 14130df69558c3c1062fd574142575d147485a20

upgpkg: 1.11.2-3

PKGBUILD +6 -1

diff --git a/PKGBUILD b/PKGBUILD
index 6769406..20d3df8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,6 +16,11 @@ optdepends=('openttd-opengfx: free graphics'
 source=("https://proxy.binaries.openttd.org/openttd-releases/$pkgver/$pkgname-$pkgver-source.tar.xz")
 b2sums=('c71fd98a480566aede29f84afbd100b6d0dfa80311860907a7287d2d5bed74bd492c2b1012cd83f45fe68d60fb0c2378e1384530a84c28bd7fbd907b45110491')
 
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i '/sse/d;/SSE/d' CMakeLists.txt
+}
+
 build() {
   cmake \
     -B build \
@@ -23,7 +28,7 @@ build() {
     -D CMAKE_INSTALL_PREFIX=/usr \
     -D CMAKE_INSTALL_BINDIR=bin \
     -D CMAKE_INSTALL_DATADIR=/usr/share \
-    -D CMAKE_CXX_FLAGS='-mtune=generic' \
+    -D CMAKE_CXX_FLAGS=' -mtune=generic' \
     -G Ninja \
     -S $pkgname-$pkgver
   ninja -C build