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

Alexander Rødseth arodseth at archlinux.org
Fri Feb 7 20:35:56 UTC 2020


    Date: Friday, February 7, 2020 @ 20:35:55
  Author: arodseth
Revision: 563761

upgpkg: raylib 2.6.0-1

Modified:
  raylib/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-07 20:06:15 UTC (rev 563760)
+++ PKGBUILD	2020-02-07 20:35:55 UTC (rev 563761)
@@ -2,8 +2,8 @@
 # Contributor: Wilhem Barbier <wilhem.b at free.fr>
 
 pkgname=raylib
-pkgver=2.5.0
-pkgrel=2
+pkgver=2.6.0
+pkgrel=1
 pkgdesc='Simple and easy-to-use game programming library'
 arch=(x86_64)
 url='https://www.raylib.com'
@@ -10,18 +10,14 @@
 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#tag=$pkgver")
+source=("git+https://github.com/raysan5/raylib#commit=6f3c99a295533e41de3049db5e683d15fd5c6e1a") # 2.6.0
 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" \
+    -Wno-dev \
     -D CMAKE_BUILD_TYPE=Release \
     -D CMAKE_INSTALL_PREFIX=/usr \
     -D CMAKE_INSTALL_LIBDIR=lib \
@@ -39,13 +35,15 @@
 
 package() {
   DESTDIR="$pkgdir" ninja -C build install
+  
   # Also package header files
   for f in build/src/*.h; do
     install -Dm 644 "$f" "$pkgdir/usr/include/$(basename $f)"
   done
+  
   # License
-  install -Dm 644 "$pkgname/LICENSE.md" \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+  install -Dm 644 "$pkgname/LICENSE" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
 # getver: github.com/raysan5/raylib/releases



More information about the arch-commits mailing list