blob: 86f442e326e0e9877df19d5c6265cad8eb3647e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
set -o errexit
wget --no-clobber 'https://github.com/stenzek/duckstation/releases/download/latest/DuckStation-x64.AppImage'
chmod u+x ./DuckStation-x64.AppImage
./DuckStation-x64.AppImage --appimage-extract
version="$(xq -r '.component.releases.release["@version"]' < squashfs-root/usr/share/metainfo/org.duckstation.DuckStation.metainfo.xml)"
version="${version%-*}"
revision="${version#0\.1-}"
echo "$revision"
sed -i "s/^pkgver=.*$/pkgver=0.1.r${revision}/" PKGBUILD
mv DuckStation-x64.AppImage "duckstation-qt-0.1.r${revision}.AppImage"
updpkgsums
makepkg --printsrcinfo > .SRCINFO
|