[arch-commits] Commit in (5 files)

Alexander Rødseth arodseth at archlinux.org
Mon Apr 22 18:46:28 UTC 2019


    Date: Monday, April 22, 2019 @ 18:46:27
  Author: arodseth
Revision: 452987

Add raylib

Added:
  raylib/
  raylib/repos/
  raylib/repos/community-x86_64/
  raylib/trunk/
  raylib/trunk/PKGBUILD

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Added: raylib/trunk/PKGBUILD
===================================================================
--- raylib/trunk/PKGBUILD	                        (rev 0)
+++ raylib/trunk/PKGBUILD	2019-04-22 18:46:27 UTC (rev 452987)
@@ -0,0 +1,43 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Wilhem Barbier <wilhem.b at free.fr>
+
+pkgname=raylib
+pkgver=2.0.0
+pkgrel=1
+pkgdesc='Well designed and easy-to-use game programming library'
+arch=(x86_64)
+url='https://www.raylib.com'
+license=(ZLIB)
+depends=(libx11)
+makedepends=(cmake git glfw libxcursor libxinerama libxrandr ninja vulkan-headers xorg-server-devel xorg-xinput)
+source=("git+https://github.com/raysan5/raylib#tag=$pkgver")
+md5sums=(SKIP)
+
+build() {
+  mkdir -p build
+  cd build
+  cmake "$srcdir/$pkgname" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DCMAKE_C_FLAGS="$CFLAGS -fPIC -w" \
+    -DBUILD_EXAMPLES=OFF \
+    -DBUILD_GAMES=OFF \
+    -DSHARED=ON \
+    -DSTATIC=OFF \
+    -DOpenGL_GL_PREFERENCE=GLVND \
+    -G Ninja
+  ninja
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+  # Also package header files
+  for f in build/release/*.h; do
+    install -Dm644 "$f" "$pkgdir/usr/include/$(basename $f)"
+  done
+  # License
+  install -Dm644 "$pkgname/LICENSE.md" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list