blob: 7188370f6aef50a9803767cf022ccae037284588 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Creator: Dimitris Kiziridis <ragouel at outlook dot com>
# Maintainer: Artem Vasilev <artem.vasilev@rwth-aachen.de>
# Maintainer: gardenapple <mailbox@appl.garden>
pkgname=duckstation-qt-bin
_pkgname="${pkgname%-bin}"
_fullname=org.duckstation.DuckStation
pkgver=0.1.r8314
pkgrel=1
pkgdesc="Fast PlayStation 1 emulator for PC and Android"
arch=('x86_64')
url='https://github.com/stenzek/duckstation'
license=('CC-BY-NC-ND-4.0')
provides=("$_pkgname" 'duckstation')
options=('!strip')
noextract=("${_pkgname}-${pkgver}.AppImage")
source=("${_pkgname}-${pkgver}.AppImage::https://github.com/stenzek/duckstation/releases/download/latest/DuckStation-x64.AppImage")
sha256sums=('eacc20bdbe4464e9cf06fa6131c0c4753f64f42ac0c0db66afd8616f51d4a161')
package() {
chmod 755 "$srcdir/${_pkgname}-${pkgver}.AppImage"
"$srcdir/${_pkgname}-${pkgver}.AppImage" --appimage-extract
install -Dm644 "squashfs-root/${_fullname}.png" -t "$pkgdir/usr/share/pixmaps"
install -Dm644 "squashfs-root/${_fullname}.desktop" -t "$pkgdir/usr/share/applications"
install -d "$pkgdir/opt"
cp -avR squashfs-root/ "$pkgdir/opt/$_pkgname"
cat <<- EOF > "${_pkgname}.sh"
#!/bin/sh
cd /opt/$_pkgname && ./AppRun
EOF
install -Dm755 "${_pkgname}.sh" "$pkgdir/usr/bin/$_pkgname"
find "$pkgdir/opt/$_pkgname" -type d -exec chmod 755 {} +
}
|