blob: 3adab147243b2827fd071c3fa5a650bdc4ced007 (
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
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: badcast <lmecomposer@gmail.com>
_pkglib="roninengine"
_pkgbase="ronin-engine"
pkgname=${_pkgbase}-static-git
pkgver=1.0.0
pkgrel=5
url="https://github.com/badcast/${_pkgbase}"
pkgdesc="RoninEngine (static) - The Ronin Engine Framework. For World simulation, UI intersection, Game Emulation, 2D game, etc. (dev-state, unstable, alpha-version)"
arch=(x86_64)
license=('MIT')
depends=('sdl2' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf' 'sdl2_gfx' 'jsoncpp')
optdepends=('library-brainmap: override base AI::NavMesh')
makedepends=('cmake' 'gcc' 'make' 'pkgconf')
source=("git+${url}.git")
provides=("lib${_pkglib}.a" "${_pkgbase}")
replaces=("${_pkgbase}")
conflicts=("${_pkgbase}" "${_pkgbase}-unstable-git")
md5sums=('SKIP')
options=(staticlibs strip)
build(){
# Environment
cd "${srcdir}/${_pkgbase}"
build_dir="${srcdir}/build"
# Configuring
cmake -S . -B "${build_dir}" -DCMAKE_CXX_FLAGS="-static -fPIC" -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
# Build static lib
cmake --build "${build_dir}"
}
package(){
# Environment
cd "${srcdir}/${_pkgbase}"
build_dir="${srcdir}/build"
DESTDIR="${pkgdir}" cmake --install "${build_dir}"
install -Dm644 "${srcdir}/${_pkgbase}/LICENSE" "${pkgdir}/usr/share/licenses/RoninEngine/LICENSE"
}
|