blob: 3b45282a65a58c1da15c2f64732c7009f2361eee (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
# Contributor: Artem Vasilev <artem.vasilev@rwth-aachen.de>
# Contributor: gardenapple <mailbox@appl.garden>
pkgname=duckstation-qt-bin
_pkgname="${pkgname%-bin}"
_fullname=org.duckstation.DuckStation
pkgver=0.1.r10693
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')
conflicts=("$_pkgname" 'duckstation')
depends=('hicolor-icon-theme' 'mesa' 'glibc' 'gcc-libs')
options=('!strip')
source=("${_pkgname}-${pkgver}-x64.AppImage::https://github.com/stenzek/duckstation/releases/download/v${pkgver/.r/-}/DuckStation-x64.AppImage"
"${_pkgname}-${pkgver}-x64-SSE2.AppImage::$url/releases/download/v${pkgver/.r/-}/Duckstation-x64-SSE2.AppImage")
sha256sums=('a987b25b7cb14d1c276d8a28f6199b0af9a1fa21251d076265a07e308f4fef23'
'7a415d7d44cdb7b3d3af2fa5823fd40eef8610ed82cc126a5c133258eac67008')
package() {
cd "$srcdir"
if grep -E "sse4_1|sse4_2" /proc/cpuinfo >/dev/null
then
chmod 755 "$srcdir/${_pkgname}-${pkgver}-x64.AppImage"
"$srcdir/${_pkgname}-${pkgver}-x64.AppImage" --appimage-extract
else
chmod 755 "$srcdir/${_pkgname}-${pkgver}-x64-SSE2.AppImage"
"$srcdir/${_pkgname}-${pkgver}-x64-SSE2.AppImage" --appimage-extract
fi
install -Dm644 "squashfs-root/${_fullname}.png" -t "$pkgdir/usr/share/icons/hicolor/512x512/apps/"
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"
#!/usr/bin/env sh
cd /opt/$_pkgname && ./AppRun "\$@"
EOF
install -Dm755 "${_pkgname}.sh" "$pkgdir/usr/bin/$_pkgname"
find "$pkgdir/opt/$_pkgname" -type d -exec chmod 755 {} +
cd "$pkgdir/opt/$_pkgname"
rm $_fullname.desktop $_fullname.png .DirIcon
}
|