Looks like the nogui variant has been deprecated, which is causing the PKGBUILD to fail. Here's the relevant commit.
https://github.com/dolphin-emu/dolphin/commit/9611279be550ee262f30b7b0d11f92a0d5fc08f5
Removing everything related to it, and changing the _checkoutput line to use $_mainpkgname, gets a successful package build. Here's a patch for the time being. Don't forget to sudo pacman -R dolphin-emu-nogui-git before running makepkg.
--- PKGBUILD
+++ PKGBUILD
@@ -5,10 +5,9 @@
# Contributor: Michał Kopeć <michal.kopec@3mdeb.com>
_projectname='dolphin'
_mainpkgname="$_projectname-emu"
-_noguipkgname="$_projectname-emu-nogui"
_toolpkgname="$_projectname-emu-tool"
pkgbase="$_mainpkgname-git"
-pkgname=("$pkgbase" "$_noguipkgname-git" "$_toolpkgname-git")
+pkgname=("$pkgbase" "$_toolpkgname-git")
pkgver='2606.r121.g774200dcf4'
pkgrel='1'
pkgdesc='A Gamecube / Wii emulator'
@@ -122,7 +121,7 @@
ninja unittests
# Verify that the basic functionality works
- _checkoutput="$(QT_QPA_PLATFORM='offscreen' "$srcdir/$_sourcedirectory/build/Binaries/$_noguipkgname" --version)"
+ _checkoutput="$(QT_QPA_PLATFORM='offscreen' "$srcdir/$_sourcedirectory/build/Binaries/$_mainpkgname" --version)"
printf '%s\n' "$_checkoutput"
printf '%s\n' "$_checkoutput" | grep -q -E "^${_projectname^}( \[.+\])? ${_checkversion}(-dirty)?(-ICC)?$"
}
@@ -141,22 +140,7 @@
install -Dm644 'Data/51-usb-device.rules' "$pkgdir/usr/lib/udev/rules.d/51-usb-device.rules"
install -Dm644 'build/Flatpak/org.DolphinEmu.dolphin-emu.metainfo.xml' "$pkgdir/usr/share/metainfo/org.DolphinEmu.dolphin-emu.metainfo.xml"
- rm -rf "$pkgdir/usr/bin/$_noguipkgname"
rm -rf "$pkgdir/usr/bin/$_projectname-tool"
- rm -rf "$pkgdir/usr/share/man/man6/$_noguipkgname.6"
-}
-
-package_dolphin-emu-nogui-git() {
- pkgdesc="$pkgdesc - no GUI$_pkgdescappend"
- depends+=("$_mainpkgname")
- optdepends=()
- provides=("$_noguipkgname" "$_mainpkgname-cli")
- conflicts=("$_noguipkgname" "$_mainpkgname-cli")
-
- cd "$srcdir/$_sourcedirectory/"
- install -Dm755 "build/Binaries/$_noguipkgname" "$pkgdir/usr/bin/$_noguipkgname"
- ln -sf "/usr/bin/$_noguipkgname" "$pkgdir/usr/bin/$_mainpkgname-cli"
- install -Dm644 "Data/$_noguipkgname.6" "$pkgdir/usr/share/man/man6/$_noguipkgname.6"
}
package_dolphin-emu-tool-git() {
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