-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPKGBUILD
More file actions
56 lines (50 loc) · 966 Bytes
/
Copy pathPKGBUILD
File metadata and controls
56 lines (50 loc) · 966 Bytes
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pkgname=arenarush
_pkgname=ArenaRush
pkgver=${PKGVER:-1.0.0}
pkgrel=1
pkgdesc="Arena Rush - A simple OpenGL game built with C++ and CMake"
arch=('x86_64')
url="https://github.com/AhmedAmrNabil/arena-rush"
license=('unknown')
depends=(
libglvnd
libffi
pipewire
openal
bullet
glfw
assimp
zlib
wayland
wayland-protocols
libxkbcommon
egl-wayland
libdecor
libx11
libxcursor
libxrandr
libxi
libxinerama
)
makedepends=(
cmake
ninja
pkgconf
git
extra-cmake-modules
)
source=("git+$url.git")
sha256sums=('SKIP')
build() {
cmake -S "$srcdir/arena-rush" -B "$srcdir/build" -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGLFW_BUILD_WAYLAND=1 \
-DGLFW_BUILD_X11=1 \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DUSE_SYSTEM_LIBS=ON
cmake --build "$srcdir/build"
}
package() {
DESTDIR="$pkgdir" cmake --install "$srcdir/build"
}