upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / openmw / trunk / PKGBUILD
blob3f9558ba5de8451d805875dbd40a6cd5bde1669e
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Sandy Carter <bwrsandman@gmail.com>
4 pkgname=openmw
5 pkgver=0.47.0
6 pkgrel=11
7 pkgdesc="Open-source engine reimplementation for the role-playing game Morrowind"
8 arch=('x86_64')
9 url="http://www.openmw.org"
10 license=('GPL3' 'MIT' 'custom')
11 depends=('openal' 'openscenegraph' 'mygui' 'qt5-base' 'ffmpeg' 'sdl2' 'unshield' 'libxt' 'boost-libs')
12 makedepends=('cmake' 'boost' 'doxygen' 'ninja' 'gcc12')
13 source=("https://github.com/OpenMW/openmw/archive/refs/tags/openmw-0.47.0.tar.gz"
14         https://gitlab.com/OpenMW/openmw/-/merge_requests/1870.patch
15         1941.patch
16         https://gitlab.com/OpenMW/openmw/-/commit/98a7d90ee258ceef9c70b0b2955d0458ec46f048.patch)
17 sha512sums=('517e650d0054cdba8d38de05ed3975b0fcf8de32fda59c8df7c34b973e5390efa0dd9ec79babdfdaa79dee7aa8a75009776f62fad91b9aa9aa28016c5032652b'
18             '99f721bbeba43a0e259498bbf16ae24dba2a8554e5543fce265ef6c3cc544f4b28c6a13ed3aa51b1eea97fc0552fe056b028188f326dca0265096cf29988f504'
19             'ca1b8601b4baca6929c928b9349e3b07d21992890d4c50c5ff4d537a5ab1b77f044c520af46e8f21480d37902e6329e5ec4459056ac9d8801ba0278d8391bcd7'
20             '37dfc5611523bf158fe2b6c19bdc11ebd0a70837943183b16b1ec36e06df37c7e089586935753c7442720349d5a7e356dc4f11e79666af0c4d5146f8f64d4853')
22 prepare () {
23   cd openmw-openmw-$pkgver
24   patch -Np1 -i "$srcdir"/1870.patch
25   patch -Np1 -i "$srcdir"/1941.patch
26   patch -Np1 -i "$srcdir"/98a7d90ee258ceef9c70b0b2955d0458ec46f048.patch
29 build() {
30   cd openmw-openmw-$pkgver
32   export CXX=g++-12
34   # We can't use system bullet because openmw needs a version built with double
35   # precision but the one we ship in Arch is built with single precision for
36   # performance reasons.
37   cmake \
38     -DCMAKE_INSTALL_PREFIX=/usr \
39     -DCMAKE_BUILD_TYPE=Release \
40     -DOPENMW_LTO_BUILD=ON \
41     -DDESIRED_QT_VERSION=5 \
42     -DOPENMW_USE_SYSTEM_BULLET=OFF \
43     -GNinja \
44     -Bbuild
45   ninja -C build
48 package() {
49   cd openmw-openmw-$pkgver
50   DESTDIR="$pkgdir" ninja -C build install
53 # vim: ts=2 sw=2 et: