Hey, so Peter0x44 has the wrong idea of just disabling the part that was failing due to the missing submodule. I have attached a patch file adding all missing submodules from this PKGBUILD, except for SDL and libusb.
diff --git a/PKGBUILD b/PKGBUILD
index 2431733..6086c9b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@ _mainpkgname="$_projectname-emu"
_noguipkgname="$_projectname-emu-nogui"
pkgbase="$_mainpkgname-git"
pkgname=("$pkgbase" "$_noguipkgname-git")
-pkgver='5.0.r18714.g3c4a21315d'
-pkgrel='1'
+pkgver=5.0.r19148.gd8fabd37fb
+pkgrel=1
pkgdesc='A Gamecube / Wii emulator'
_pkgdescappend=' - git version'
arch=('x86_64' 'aarch64')
@@ -24,6 +24,11 @@ makedepends=('cmake' 'git' 'ninja' 'python')
optdepends=('pulseaudio: PulseAudio backend')
source=(
"$pkgname::git+https://github.com/$_mainpkgname/$_projectname"
+ "$pkgname-mgba::git+https://github.com/mgba-emu/mgba.git"
+ "$pkgname-libspng::git+https://github.com/randy408/libspng.git"
+ "$pkgname-VulkanMemoryAllocator::git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git"
+ "$pkgname-cubeb::git+https://github.com/mozilla/cubeb.git"
+ "$pkgname-rcheevos::git+https://github.com/RetroAchievements/rcheevos.git"
"$pkgname-spirvcross::git+https://github.com/KhronosGroup/SPIRV-Cross.git"
"$pkgname-zlibng::git+https://github.com/zlib-ng/zlib-ng.git"
"$pkgname-vma::git+https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git"
@@ -31,6 +36,11 @@ source=(
'minizip-ng.diff'
)
sha512sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
'SKIP'
'SKIP'
'SKIP'
@@ -47,29 +57,51 @@ prepare() {
# Fix minizip-ng name for Arch
patch --forward -p1 < "$srcdir/minizip-ng.diff"
+ #Provide MGBA submodule
+ _mgbapath='Externals/mGBA/mgba'
+ git config --file=.gitmodules "submodule.$_mgbapath.url" "$srcdir/$pkgname-mgba/"
+ git -c protocol.file.allow=always submodule update --init "$_mgbapath"
+
+ #Provide libspng submodule
+ _libspngpath='Externals/libspng/libspng'
+ git config --file=.gitmodules "submodule.$_libspngpath.url" "$srcdir/$pkgname-libspng"
+ git -c protocol.file.allow=always submodule update --init "$_libspngpath"
+
+ #Provide VulkanMemoryAllocator submodule
+ _VulkanMemoryAllocatorpath='Externals/VulkanMemoryAllocator'
+ git config --file=.gitmodules "submodule.$_VulkanMemoryAllocatorpath.url" "$srcdir/$pkgname-VulkanMemoryAllocator"
+ git -c protocol.file.allow=always submodule update --init "$_VulkanMemoryAllocatorpath"
+
+ # Provide cubeb submodule
+ _cubebpath='Externals/cubeb/cubeb'
+ git config --file=.gitmodules "submodule.$_cubebpath.url" "$srcdir/$pkgname-cubeb"
+ git -c protocol.file.allow=always submodule update --init "$_cubebpath"
+
+ # Provide rcheevos submodule
+ _rcheevospath='Externals/rcheevos/rcheevos'
+ git config --file=.gitmodules "submodule.$_rcheevospath.url" "$srcdir/$pkgname-rcheevos"
+ git -c protocol.file.allow=always submodule update --init "$_rcheevospath"
+
# Provide SPIRV-Cross submodule
_spirvcrosspath='Externals/spirv_cross/SPIRV-Cross'
- git submodule init "$_spirvcrosspath"
- git config "submodule.$_spirvcrosspath.url" "$srcdir/$pkgname-spirvcross/"
- git -c protocol.file.allow=always submodule update "$_spirvcrosspath"
+ git config --file=.gitmodules "submodule.$_spirvcrosspath.url" "$srcdir/$pkgname-spirvcross/"
+ git -c protocol.file.allow=always submodule update --init "$_spirvcrosspath"
# Provide zlib-ng submodule
_zlibngpath='Externals/zlib-ng/zlib-ng'
- git submodule init "$_zlibngpath"
- git config "submodule.$_zlibngpath.url" "$srcdir/$pkgname-zlibng/"
- git -c protocol.file.allow=always submodule update "$_zlibngpath"
+ git config --file=.gitmodules "submodule.$_zlibngpath.url" "$srcdir/$pkgname-zlibng/"
+ git -c protocol.file.allow=always submodule update --init "$_zlibngpath"
# Provide vma submodule
_vmapath='Externals/VulkanMemoryAllocator'
- git submodule init "$_vmapath"
- git config "submodule.$_vmapath.url" "$srcdir/$pkgname-vma/"
- git -c protocol.file.allow=always submodule update "$_vmapath"
+ git config --file=.gitmodules "submodule.$_vmapath.url" "$srcdir/$pkgname-vma/"
+ git -c protocol.file.allow=always submodule update --init "$_vmapath"
# Provide implot submodule
_implotpath='Externals/implot/implot'
- git submodule init "$_implotpath"
- git config "submodule.$_implotpath.url" "$srcdir/$pkgname-implot/"
- git -c protocol.file.allow=always submodule update "$_implotpath"
+ git config --file=.gitmodules "submodule.$_implotpath.url" "$srcdir/$pkgname-implot/"
+ git -c protocol.file.allow=always submodule update --init "$_implotpath"
+
}
pkgver() {
Pinned Comments
dpeukert commented on 2020-04-10 12:34 (UTC) (edited on 2020-09-26 17:48 (UTC) by dpeukert)
The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/dolphin-emu-git