[arch-commits] Commit in raylib/trunk (PKGBUILD)

Alexander Rødseth arodseth at gemini.archlinux.org
Sun Nov 7 20:44:24 UTC 2021


    Date: Sunday, November 7, 2021 @ 20:44:24
  Author: arodseth
Revision: 1038737

upgpkg: raylib 4.0.0-1

Modified:
  raylib/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-07 20:42:10 UTC (rev 1038736)
+++ PKGBUILD	2021-11-07 20:44:24 UTC (rev 1038737)
@@ -2,8 +2,8 @@
 # Contributor: Wilhem Barbier <wilhem.b at free.fr>
 
 pkgname=raylib
-pkgver=3.7.0
-pkgrel=2
+pkgver=4.0.0
+pkgrel=1
 pkgdesc='Simple and easy-to-use game programming library'
 arch=(x86_64)
 url='https://www.raylib.com'
@@ -10,25 +10,25 @@
 license=(ZLIB)
 depends=(glfw)
 makedepends=(cmake git libx11 libxcursor libxinerama libxrandr ninja vulkan-headers xorg-server-devel xorg-xinput)
-source=("git+https://github.com/raysan5/raylib#commit=b6c8d343dca2ef19c23c50975328a028124cf3cb") # tag: 3.7.0
+source=("git+https://github.com/raysan5/raylib#commit=0851960397f02a477d80eda2239f90fae14dec64") # tag: 4.0.0
 b2sums=('SKIP')
 
 build() {
-  mkdir -p build
-  cd build
-  cmake ../$pkgname \
-    -Wno-dev \
+  cmake \
+    -B build \
+    -D BUILD_EXAMPLES=OFF \
+    -D BUILD_SHARED_LIBS=ON \
     -D CMAKE_BUILD_TYPE=Release \
+    -D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" \
+    -D CMAKE_INSTALL_LIBDIR=lib \
     -D CMAKE_INSTALL_PREFIX=/usr \
-    -D CMAKE_INSTALL_LIBDIR=lib \
-    -D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" \
     -D OpenGL_GL_PREFERENCE=GLVND \
     -D USE_EXTERNAL_GLFW=ON \
-    -D BUILD_EXAMPLES=OFF \
-    -D BUILD_SHARED_LIBS=ON \
     -D WITH_PIC=ON \
-    -G Ninja
-  ninja
+    -G Ninja \
+    -S $pkgname \
+    -Wno-dev
+  ninja -C build
 }
 
 package() {



More information about the arch-commits mailing list