Date: Tuesday, December 6, 2022 @ 17:04:44
  Author: alucryd
Revision: 1356805

upgpkg: libretro-flycast 5247-1

Modified:
  libretro-flycast/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-12-06 16:02:41 UTC (rev 1356804)
+++ PKGBUILD    2022-12-06 17:04:44 UTC (rev 1356805)
@@ -1,7 +1,7 @@
 # Maintainer: Maxime Gauduin <[email protected]>
 
 pkgname=libretro-flycast
-pkgver=4487
+pkgver=5247
 pkgrel=1
 pkgdesc='Sega Dreamcast core'
 arch=(x86_64)
@@ -11,48 +11,52 @@
 depends=(
   libgl
   libretro-core-info
-  libzip
-  xxhash
   zlib
 )
 makedepends=(
+  cmake
   git
   mesa
+  ninja
 )
-_commit=4c293f306bc16a265c2d768af5d0cea138426054
+_commit=71ba0187820da4f89c490bdfa78b006504e57adf
 source=(
-  
libretro-flycast::git+https://github.com/libretro/flycast.git#commit=${_commit}
-  libretro-flycast-flags.patch
+  git+https://github.com/flyinghead/flycast.git#commit=${_commit}
+  git+https://github.com/KhronosGroup/glslang.git
+  git+https://github.com/rtissera/libchdr.git
+  git+https://github.com/KhronosGroup/Vulkan-Headers.git
+  git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
 )
-sha256sums=('SKIP'
-            '051f6fda81d816a8f8c58748565ba4db73a18d0d788e520dc343839471606709')
+b2sums=('SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP'
+        'SKIP')
 
+prepare() {
+  cd flycast
+  for submodule in 
core/deps/{glslang,libchdr,Vulkan-Headers,VulkanMemoryAllocator}; do
+    git submodule init ${submodule}
+    git submodule set-url ${submodule} "${srcdir}/${submodule##*/}"
+    git -c protocol.file.allow=always submodule update ${submodule}
+  done
+}
+
 pkgver() {
-  cd libretro-flycast
-
+  cd flycast
   git rev-list --count HEAD
 }
 
-prepare() {
-  cd libretro-flycast
-
-  patch -Np1 -i ../libretro-flycast-flags.patch
-}
-
 build() {
-  make \
-    HAVE_OIT=1 \
-    SYSTEM_GLSLANG=0 \
-    SYSTEM_LIBCHDR=0 \
-    SYSTEM_LIBZIP=1 \
-    SYSTEM_PICOTCP=0 \
-    SYSTEM_XXHASH=1 \
-    SYSTEM_ZLIB=1 \
-    -C libretro-flycast
+  cmake -S flycast -B build -G Ninja \
+    -DCMAKE_BUILD_TYPE=None \
+    -DLIBRETRO=ON \
+    -Wno-dev
+  cmake --build build
 }
 
 package() {
-  install -Dm 644 libretro-flycast/flycast_libretro.so -t 
"${pkgdir}"/usr/lib/libretro/
+  install -Dm 644 build/flycast_libretro.so -t "${pkgdir}"/usr/lib/libretro/
 }
 
 # vim: ts=2 sw=2 et:

Reply via email to