blob: 3d30c752dc9aec717d31a737acd2f021ce94cd1a (
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
|
# Maintainer: Debucquoy Anthony (tonitch) <d.tonitch@gmail.com>
pkgname=wickedengine
_pkgname=WickedEngine
pkgver=0.71.613
pkgrel=1
pkgdesc="3D engine with modern graphics "
arch=('any')
url="https://wickedengine.net/"
license=('MIT')
depends=("sdl2")
makedepends=("cmake" "sdl2" "gcc")
source=("https://github.com/turanszkij/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('9ff4a760af98f16d81a8c2de6ae880dac569ea3345b30ba629554dba814cedeb')
prepare(){
sed -i "/-Wmaybe-uninitialized/d" $srcdir/${_pkgname}-${pkgver}/WickedEngine/CMakeLists.txt
sed -i "/-Werror/d" $srcdir/${_pkgname}-${pkgver}/WickedEngine/CMakeLists.txt
}
build(){
cmake -S $srcdir/${_pkgname}-${pkgver} -B $srcdir/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
cmake --build $srcdir/build
}
package() {
DESTDIR=${pkgdir} cmake --install ${srcdir}/build
install -Dm644 $srcdir/${_pkgname}-${pkgver}/LICENSE.txt ${pkgdir}/usr/share/licenses/$pkgname/LICENSE.md
}
|