blob: f92cdaa67200dae9b7e0a06fe21086816f371d46 (
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
|
_pkgname=raylib
pkgname=raylib-static
pkgver=4.2.0
pkgrel=1
pkgdesc='Simple and easy-to-use game programming library'
provides=($_pkgname)
conflicts=($_pkgname)
options=(staticlibs)
arch=(x86_64)
url='https://www.raylib.com'
license=(ZLIB)
makedepends=(cmake git libx11 libxcursor libxinerama libxrandr ninja vulkan-headers xorg-server-devel xorg-xinput)
source=("git+https://github.com/raysan5/raylib#commit=bf2ad9df5fdcaa385b2a7f66fd85632eeebbadaa")
b2sums=('SKIP')
build() {
cmake \
-B static \
-D BUILD_EXAMPLES=OFF \
-D BUILD_SHARED_LIBS=OFF \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS="$CFLAGS -w" \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_INSTALL_PREFIX=/usr \
-D OpenGL_GL_PREFERENCE=GLVND \
-D USE_EXTERNAL_GLFW=OFF \
-G Ninja \
-S $_pkgname \
-W no-dev
ninja -C static
}
package() {
DESTDIR="$pkgdir" ninja -C static install
install -Dm 644 "$_pkgname/LICENSE" \
"$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}
|