summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreugene2022-08-17 15:35:13 +0000
committereugene2022-08-17 15:35:13 +0000
commitebc4f191a890329a92b9e7e2d78752ea7fa8c3b8 (patch)
tree22f65d25bde31cd9857dedb3521472118bca1015
parentae44a1da67c67ce032fa3ab6316e05862da012b9 (diff)
downloadaur-ebc4f191a890329a92b9e7e2d78752ea7fa8c3b8.tar.gz
add desktop file generation as upstream deleted it, add cubeb deps
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD19
2 files changed, 18 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ef9821bbaf2..ff485e2051c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,6 +11,10 @@ pkgbase = duckstation-git
makedepends = extra-cmake-modules
makedepends = qt6-tools
makedepends = libdrm
+ makedepends = libpulse
+ makedepends = alsa-lib
+ makedepends = jack2
+ makedepends = sndio
makedepends = gtk3
makedepends = ninja
depends = sdl2
diff --git a/PKGBUILD b/PKGBUILD
index 5977a72d9ea..aeac3fe32b7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgrel=1
arch=(x86_64 aarch64)
url=https://github.com/stenzek/duckstation
license=(GPL3)
-makedepends=(git cmake extra-cmake-modules qt6-tools libdrm gtk3 ninja)
+makedepends=(git cmake extra-cmake-modules qt6-tools libdrm libpulse alsa-lib jack2 sndio gtk3 ninja)
depends=(sdl2 qt6-base)
optdepends=()
provides=("${pkgname%-git}")
@@ -39,8 +39,17 @@ package() {
ln -svt "${pkgdir}/usr/bin" /opt/"${pkgname%-git}"/"${pkgname%-git}"-qt
# Desktop file
- install -Dm644 -t "${pkgdir}/usr/share/applications/" "${pkgname%-git}"/extras/linux-desktop-files/duckstation-qt.desktop
- sed -e 's/Icon=duckstation-qt/Icon=duckstation/' -i "${pkgdir}/usr/share/applications/duckstation-qt.desktop"
- #sed -e 's/Icon=duckstation-qt/Icon=duckstation/' -i "${pkgdir}/usr/share/applications/duckstation-nogui.desktop"
- install -Dm644 "${pkgname%-git}"/extras/icons/icon-256px.png "${pkgdir}/usr/share/pixmaps/duckstation.png"
+ cat > "${pkgname%-git}/data/resources/.desktop" << EOF
+[Desktop Entry]
+Type=Application
+Name=DuckStation
+GenericName=PlayStation 1 Emulator
+Comment=Fast PlayStation 1 emulator
+Icon=duckstation
+TryExec=duckstation-qt
+Exec=duckstation-qt %f
+Categories=Game;Emulator;Qt;
+EOF
+ install -Dm644 "${pkgname%-git}/data/resources/.desktop" "${pkgdir}/usr/share/applications/duckstation-qt.desktop"
+ install -Dm644 "${pkgname%-git}/data/resources/images/duck.png" "${pkgdir}/usr/share/pixmaps/duckstation.png"
}