summaryrefslogtreecommitdiff
path: root/repo/raylib/raylib.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/raylib/raylib.xibuild
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/raylib/raylib.xibuild')
-rw-r--r--repo/raylib/raylib.xibuild26
1 files changed, 26 insertions, 0 deletions
diff --git a/repo/raylib/raylib.xibuild b/repo/raylib/raylib.xibuild
new file mode 100644
index 0000000..da1feac
--- /dev/null
+++ b/repo/raylib/raylib.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="raylib"
+DESC="a simple and easy to use game development library"
+
+MAKEDEPS="cmake glfw"
+
+PKG_VER=4.0.0
+SOURCE="https://github.com/raysan5/raylib/archive/refs/tags/$PKG_VER.tar.gz"
+
+build() {
+ cmake -B build \
+ -DBUILD_EXAMPLES=Off \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_EXTERNAL_GLFW=ON \
+ $CMAKE_CROSSOPTS .
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+