1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Arkham <arkham at archlinux dot us>
3 # Contributor: Christoph Zeiler <rabyte*gmail>
9 pkgdesc="A realtime strategy game with emphasis on economy and transport"
11 url="https://widelands.org/"
13 depends=('sdl2_mixer' 'sdl2_image' 'sdl2_ttf' 'lua' 'glew' 'python' 'dbus' 'minizip')
14 makedepends=('cmake' 'mesa' 'ninja' 'git' 'asio')
15 replaces=('widelands-data')
16 source=("$pkgname-$pkgver.tar.gz::https://github.com/widelands/widelands/archive/refs/tags/v${pkgver}.tar.gz")
17 sha512sums=('29dbeae0940468c8aad6f0fa610c8467bdb6ecf2ba5fe9175683b7cdaab5f977fa86beb71de29057c829e9738568d15e10bc22fa7fc9e58132151a1a02d72d9d')
25 -DCMAKE_BUILD_TYPE=Release \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DWL_INSTALL_BINDIR=bin \
28 -DWL_INSTALL_BASEDIR=/usr \
29 -DWL_INSTALL_DATADIR=/usr/share/widelands
36 DESTDIR="$pkgdir" ninja -C build install
38 # Fix wrong locations of some installed files (upstream bug)
40 mv "$pkgdir"/usr/{VERSION,ChangeLog,CREDITS} "$pkgdir"/usr/share/widelands
42 mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
43 mv "$pkgdir"/usr/COPYING "$pkgdir"/usr/share/licenses/$pkgname