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

Alexander Rødseth arodseth at archlinux.org
Mon Jul 29 09:03:45 UTC 2019


    Date: Monday, July 29, 2019 @ 09:03:44
  Author: arodseth
Revision: 494500

upgpkg: raylib 2.5.0-2

Modified:
  raylib/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-29 09:03:32 UTC (rev 494499)
+++ PKGBUILD	2019-07-29 09:03:44 UTC (rev 494500)
@@ -3,7 +3,7 @@
 
 pkgname=raylib
 pkgver=2.5.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Simple and easy-to-use game programming library'
 arch=(x86_64)
 url='https://www.raylib.com'
@@ -13,21 +13,26 @@
 source=("git+https://github.com/raysan5/raylib#tag=$pkgver")
 md5sums=('SKIP')
 
+prepare() {
+  # Patch for FS#63279, is fixed in raylib master, can be removed for the next release
+  sed -i 's/PKG_DEPS glfw)/PKG_DEPS glfw3)/g' "$pkgname/src/CMakeLists.txt"
+}
+
 build() {
   mkdir -p build
   cd build
   cmake "$srcdir/$pkgname" \
-    -DCMAKE_BUILD_TYPE=Release \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=lib \
-    -DCMAKE_C_FLAGS="$CFLAGS -fPIC -w" \
-    -DOpenGL_GL_PREFERENCE=GLVND \
-    -DUSE_EXTERNAL_GLFW=ON \
-    -DBUILD_EXAMPLES=OFF \
-    -DBUILD_GAMES=OFF \
-    -DSHARED=ON \
-    -DSTATIC=OFF \
-    -DWITH_PIC=ON \
+    -D CMAKE_BUILD_TYPE=Release \
+    -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_GAMES=OFF \
+    -D SHARED=ON \
+    -D STATIC=OFF \
+    -D WITH_PIC=ON \
     -G Ninja
   ninja
 }
@@ -36,13 +41,11 @@
   DESTDIR="$pkgdir" ninja -C build install
   # Also package header files
   for f in build/src/*.h; do
-    install -Dm644 "$f" "$pkgdir/usr/include/$(basename $f)"
+    install -Dm 644 "$f" "$pkgdir/usr/include/$(basename $f)"
   done
   # License
-  install -Dm644 "$pkgname/LICENSE.md" \
+  install -Dm 644 "$pkgname/LICENSE.md" \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
-  # Fix the pkg-config file
-  sed -i 's/: glfw/: glfw3/g' "$pkgdir/usr/lib/pkgconfig/$pkgname.pc"
 }
 
 # getver: github.com/raysan5/raylib/releases



More information about the arch-commits mailing list