mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-15 02:22:24 +08:00
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
|
|
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
|
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
|
|
|
|
pkgname=openttd
|
|
pkgver=12.2
|
|
pkgrel=3
|
|
pkgdesc='Engine for running Transport Tycoon Deluxe'
|
|
arch=(x86_64)
|
|
url='https://www.openttd.org'
|
|
license=(GPL)
|
|
depends=(fluidsynth fontconfig hicolor-icon-theme libpng)
|
|
makedepends=(cmake ninja)
|
|
optdepends=('openttd-opengfx: free graphics'
|
|
'openttd-opensfx: free soundset')
|
|
source=("https://cdn.$pkgname.org/$pkgname-releases/$pkgver/$pkgname-$pkgver-source.tar.xz"
|
|
"0001-change-network-server.patch")
|
|
b2sums=('a2c0192a2d4ed149f7c6584032b46483eb74d2d7d2ced16f1d0d3e638c4acef184cd8b013b855a01750dbb570d37bb6ed95f04d16c1580e4b3777ea3b90cfee1'
|
|
'43e8f5dfdf2479caceb3a8e84cd38033404b6f09f5a0040b6b208c9cd22f058b6426a02b15b8be722643f49091c8bb60f2f11497b871b4bf90ea7d2d1ac7ea59')
|
|
|
|
prepare() {
|
|
sed -i '/sse/d;/SSE/d' $pkgname-$pkgver/CMakeLists.txt
|
|
cd ${pkgname}-${pkgver}
|
|
patch -p1 -i ../0001-change-network-server.patch
|
|
}
|
|
|
|
build() {
|
|
cmake \
|
|
-B build \
|
|
-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
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" ninja -C build install
|
|
}
|