summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71dceab26cd6d858ff77da4f39edbde6e7e3b885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pkgname=openloco
_pkgname=OpenLoco
pkgver=23.06
pkgrel=1
pkgdesc="An open source re-implementation of Chris Sawyer's Locomotion"
arch=('x86_64')
url="https://github.com/OpenLoco/OpenLoco"
license=('MIT')
depends=()
makedepends=('cmake' 'gtest' 'lib32-glibc' 'yaml-cpp')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('2e1982399b5b1165d8c3ee84c376a60f0e41965ae179508d9747c030da4a1835')


build() {
    cd ${_pkgname}-${pkgver}
    sed -i  's/option(OPENLOCO_BUILD_TESTS "Build tests" YES)/option(OPENLOCO_BUILD_TESTS "Build tests" NO)/' CMakeLists.txt

    rm -rf "build"
    mkdir -p "build"
    cd build
    
    cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../
    make
}

package() {
    cd ${_pkgname}-${pkgver}
    DESTDIR="$pkgdir" cmake -P cmake_install.cmake --install build
}