upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / openttd / trunk / PKGBUILD
bloba1ef3dc090942ef38f2b2cb7d2726f221568dc4f
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
2 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
3 # Contributor: Vesa Kaihlavirta <vegai@iki.fi>
5 pkgname=openttd
6 pkgver=13.1
7 pkgrel=1
8 pkgdesc='Engine for running Transport Tycoon Deluxe'
9 arch=(x86_64)
10 url='https://www.openttd.org'
11 license=(GPL)
12 depends=(fluidsynth fontconfig hicolor-icon-theme)
13 makedepends=(cmake ninja)
14 optdepends=('openttd-opengfx: free graphics'
15             'openttd-opensfx: free soundset')
16 source=("https://cdn.$pkgname.org/$pkgname-releases/$pkgver/$pkgname-$pkgver-source.tar.xz")
17 b2sums=('2d289defa38583c95f90322964ba43756468d7fa50087267119f00ccc3688e68e22631f41b091d44b1afaa878f8621f27ba58a0623d5be9420b61833dba8d6e7')
19 prepare() {
20   sed -i '/sse/d;/SSE/d' $pkgname-$pkgver/CMakeLists.txt
23 build() {
24   cmake \
25     -B build \
26     -D CMAKE_BUILD_TYPE=Release \
27     -D CMAKE_INSTALL_BINDIR=bin \
28     -D CMAKE_INSTALL_DATADIR=/usr/share \
29     -D CMAKE_INSTALL_PREFIX=/usr \
30     -G Ninja \
31     -S $pkgname-$pkgver
32   ninja -C build
35 package() {
36   DESTDIR="$pkgdir" ninja -C build install