aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrfaa <rfaa@rfaa.se>2020-04-25 22:54:38 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-06-13 13:30:02 -0300
commitf2977c00e6e3d71ec3b9013466e7e285b994a73e (patch)
treeaeaf8be296b916c8509c77a728c04bf51b3d60ff
parent6ed762f0d31f1cb045295134b6e946bbf7ff9fa8 (diff)
downloadaports-f2977c00e6e3d71ec3b9013466e7e285b994a73e.tar.gz
aports-f2977c00e6e3d71ec3b9013466e7e285b994a73e.tar.bz2
aports-f2977c00e6e3d71ec3b9013466e7e285b994a73e.tar.xz
testing/raylib-wayland: new aport
https://www.raylib.com Raylib game programming library targeting Wayland instead of X11 Co-authored-by: Leo <thinkabit.ukim@gmail.com>
-rw-r--r--testing/raylib-wayland/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/raylib-wayland/APKBUILD b/testing/raylib-wayland/APKBUILD
new file mode 100644
index 0000000000..df09eb5a68
--- /dev/null
+++ b/testing/raylib-wayland/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: rfaa <rfaa@rfaa.se>
+pkgname=raylib-wayland
+pkgver=3.0.0
+pkgrel=0
+pkgdesc="Raylib game programming library (Wayland)"
+url="https://www.raylib.com/"
+arch="all"
+license="Zlib"
+depends="glfw-wayland"
+depends_dev="glfw-wayland-dev"
+makedepends="$depends_dev cmake"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/raysan5/raylib/archive/$pkgver.tar.gz"
+builddir="$srcdir/raylib-$pkgver"
+options="!check" # no tests included
+
+build() {
+ cmake -B build \
+ -Wno-dev \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DUSE_EXTERNAL_GLFW=ON \
+ -DSTATIC=OFF \
+ -DSHARED=ON \
+ -DWITH_PIC=ON \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_GAMES=OFF \
+ -DUSE_WAYLAND=ON
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+
+ for f in build/src/*.h; do
+ install -Dm0644 "$f" "$pkgdir"/usr/include/"${f##*/}"
+ done
+}
+
+sha512sums="f6e78a923b139907b81a544632e5fc574cd7b029a56e42b91e4b8df1be450a393fb421ab84c2e4c933051bb6ef6f526749e647008cad2f4198601f96797de4b8 raylib-wayland-3.0.0.tar.gz"