[arch-commits] Commit in raylib/repos/community-x86_64 (PKGBUILD PKGBUILD)

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


    Date: Monday, July 29, 2019 @ 09:03:49
  Author: arodseth
Revision: 494502

archrelease: copy trunk to community-x86_64

Added:
  raylib/repos/community-x86_64/PKGBUILD
    (from rev 494501, raylib/trunk/PKGBUILD)
Deleted:
  raylib/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  101 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 52 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-29 09:03:46 UTC (rev 494501)
+++ PKGBUILD	2019-07-29 09:03:49 UTC (rev 494502)
@@ -1,49 +0,0 @@
-# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
-# Contributor: Wilhem Barbier <wilhem.b at free.fr>
-
-pkgname=raylib
-pkgver=2.5.0
-pkgrel=1
-pkgdesc='Simple and easy-to-use game programming library'
-arch=(x86_64)
-url='https://www.raylib.com'
-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")
-md5sums=('SKIP')
-
-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 \
-    -G Ninja
-  ninja
-}
-
-package() {
-  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)"
-  done
-  # License
-  install -Dm644 "$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
-# vim: ts=2 sw=2 et:

Copied: raylib/repos/community-x86_64/PKGBUILD (from rev 494501, raylib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-07-29 09:03:49 UTC (rev 494502)
@@ -0,0 +1,52 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Wilhem Barbier <wilhem.b at free.fr>
+
+pkgname=raylib
+pkgver=2.5.0
+pkgrel=2
+pkgdesc='Simple and easy-to-use game programming library'
+arch=(x86_64)
+url='https://www.raylib.com'
+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")
+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" \
+    -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
+}
+
+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"
+}
+
+# getver: github.com/raysan5/raylib/releases
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list