diff options
author | Pellegrino Prevete | 2023-06-26 20:25:23 +0200 |
---|---|---|
committer | Pellegrino Prevete | 2023-06-26 20:25:23 +0200 |
commit | c290a659aaf0245dc74a34bdb8404ea56710216a (patch) | |
tree | 2f14c7bbcc7d529fbdbb81ebab307f8b61a74ac8 | |
parent | 5aa88f8aac1bb1675607958002179ede602381b6 (diff) | |
download | aur-c290a659aaf0245dc74a34bdb8404ea56710216a.tar.gz |
add contributor
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 22 insertions, 16 deletions
@@ -1,5 +1,4 @@ pkgbase = duckstation - pkgdesc = A Sony PlayStation (PSX) emulator, focusing on playability, speed, and long-term maintainability (git version) pkgver = 2023.06.08 pkgrel = 1 url = https://github.com/stenzek/duckstation @@ -1,11 +1,12 @@ # Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com> # Contributor: katt <magunasu.b97@gmail.com> +# Contributor: Fabio Loli -_pkgname=duckstation -pkgname="${_pkgname}" +pkgname=duckstation pkgver=2023.06.08 _pkgver="latest" -pkgdesc='A Sony PlayStation (PSX) emulator, focusing on playability, speed, and long-term maintainability (git version)' +_pkgdesc=("A Sony PlayStation (PSX) emulator, focusing on playability, " + "speed, and long-term maintainability (stable snapshot)") pkgrel=1 arch=( x86_64 @@ -13,7 +14,7 @@ arch=( i686 pentium4 ) -url="https://github.com/stenzek/${_pkgname}" +url="https://github.com/stenzek/${pkgname}" license=(GPL3) makedepends=( cmake @@ -31,7 +32,7 @@ depends=(sdl2 qt6-base) optdepends=('psx-bios: PlayStation Bioses') _commit="2d78b3f26a18600cbeb1f7add97f345d7345deeb" source=( - "${_pkgname}-${_pkgver}::git+${url}#commit=${_commit}" + "${pkgname}-${_pkgver}::git+${url}#commit=${_commit}" # "${url}/archive/refs/tags/${_pkgver}.tar.gz" ) sha256sums=( @@ -40,25 +41,29 @@ sha256sums=( ) build() { - cmake -B build -S "${_pkgname}-${_pkgver}" \ - -DBUILD_NOGUI_FRONTEND=OFF \ - -DUSE_WAYLAND=ON \ - -G Ninja \ - -Wno-dev + local _cmake_opts=( + -B build + -S "${pkgname}-${_pkgver}" + -DBUILD_NOGUI_FRONTEND=OFF + -DUSE_WAYLAND=ON + -G Ninja + -Wno-dev) + + cmake "${_cmake_opts[@]}" ninja -C build } package() { # Main files install -m755 -d "${pkgdir}/opt" - cp -rv build/bin "${pkgdir}/opt/${_pkgname}" + cp -rv build/bin "${pkgdir}/opt/${pkgname}" # Symlink to /usr/bin install -m755 -d "${pkgdir}/usr/bin" - ln -svt "${pkgdir}/usr/bin" "/opt/${_pkgname}/${_pkgname}"-{qt,nogui} + ln -svt "${pkgdir}/usr/bin" "/opt/${pkgname}/${pkgname}"-{qt,nogui} # Desktop file - cat > "${_pkgname}-${_pkgver}/data/resources/${_pkgname}.desktop" << EOF + cat > "${pkgname}-${_pkgver}/data/resources/${pkgname}.desktop" << EOF [Desktop Entry] Type=Application Name=DuckStation @@ -69,6 +74,8 @@ TryExec=duckstation-qt Exec=duckstation-qt %f Categories=Game;Emulator;Qt; EOF - install -Dm644 "${_pkgname}-${_pkgver}/data/resources/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}-qt.desktop" - install -Dm644 "${_pkgname}-${_pkgver}/data/resources/images/duck.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + install -Dm644 "${pkgname}-${_pkgver}/data/resources/${pkgname}.desktop" \ + "${pkgdir}/usr/share/applications/${pkgname}-qt.desktop" + install -Dm644 "${pkgname}-${_pkgver}/data/resources/images/duck.png" \ + "${pkgdir}/usr/share/pixmaps/${pkgname}.png" } |