diff options
author | Mr.Smith1974 | 2023-07-28 14:38:07 +0300 |
---|---|---|
committer | Mr.Smith1974 | 2023-07-28 14:38:07 +0300 |
commit | 808d413e9d4f71bb045fce34c32458c1d3e21a18 (patch) | |
tree | a0826c4c64bbcbf84c838d72950dedd5cea5aac7 | |
parent | a5d2910651f38fefaaabae4b4286d14058b23d4e (diff) | |
download | aur-808d413e9d4f71bb045fce34c32458c1d3e21a18.tar.gz |
Updated build
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 21 insertions, 13 deletions
@@ -1,14 +1,18 @@ pkgbase = openloco pkgdesc = An open source re-implementation of Chris Sawyer's Locomotion - pkgver = 23.06.1 + pkgver = 23.07 pkgrel = 1 url = https://github.com/OpenLoco/OpenLoco - arch = x86_64 + arch = i686 license = MIT makedepends = cmake makedepends = lib32-glibc + makedepends = lib32-gcc-libs + makedepends = lib32-sdl2 + makedepends = lib32-libpng + makedepends = lib32-openal makedepends = yaml-cpp - source = openloco-23.06.1.tar.gz::https://github.com/OpenLoco/OpenLoco/archive/refs/tags/v23.06.1.tar.gz - sha256sums = ce8a6f5a5a76880197495346824304c8ef7c42553d7081784c4454ea54d87849 + source = openloco-23.07.tar.gz::https://github.com/OpenLoco/OpenLoco/archive/refs/tags/v23.07.tar.gz + sha256sums = 98207b49ce3af3f2bc6471ecb519ec8c82668b4e551eb39c444d2f3a367dd20b pkgname = openloco @@ -1,31 +1,35 @@ pkgname=openloco _pkgname=OpenLoco -pkgver=23.06.1 +pkgver=23.07 pkgrel=1 pkgdesc="An open source re-implementation of Chris Sawyer's Locomotion" -arch=('x86_64') +arch=('i686') url="https://github.com/OpenLoco/OpenLoco" license=('MIT') depends=() -makedepends=('cmake' 'lib32-glibc' 'yaml-cpp') +makedepends=('cmake' 'lib32-glibc' 'lib32-gcc-libs' 'lib32-sdl2' 'lib32-libpng' 'lib32-openal' 'yaml-cpp') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz") -sha256sums=('ce8a6f5a5a76880197495346824304c8ef7c42553d7081784c4454ea54d87849') +sha256sums=('98207b49ce3af3f2bc6471ecb519ec8c82668b4e551eb39c444d2f3a367dd20b') +prepare() { + gendesk --pkgname "$pkgname" --pkgdesc "$pkgdesc" +} 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 - + [[ -d build ]] && rm -rf build + mkdir build && cd build + + export CXXFLAGS="$CXXFLAGS -m32" cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../ -DSTRICT=Off make } package() { - cd ${_pkgname}-${pkgver} + install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + cd ${_pkgname}-${pkgver}/build DESTDIR="$pkgdir" cmake -P cmake_install.cmake --install build } |