diff options
author | gardenapple | 2024-04-04 21:16:12 +0300 |
---|---|---|
committer | gardenapple | 2024-04-04 21:16:12 +0300 |
commit | 43008cc1760273f9bfa7de0cb8a3b8e22220faf4 (patch) | |
tree | 2522046fe455b84662e68b12676c6c68a64b68d3 | |
parent | c3719eb289460f48b17314dc45eb46f4b8bc94cf (diff) | |
download | aur-43008cc1760273f9bfa7de0cb8a3b8e22220faf4.tar.gz |
Update, add bump.sh script
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rwxr-xr-x | bump.sh | 13 |
4 files changed, 22 insertions, 8 deletions
@@ -1,15 +1,15 @@ pkgbase = duckstation-qt-bin pkgdesc = Fast PlayStation 1 emulator for PC and Android - pkgver = 0.1.r6456 - pkgrel = 2 + pkgver = 0.1.r6515 + pkgrel = 1 url = https://github.com/stenzek/duckstation arch = x86_64 license = GPL3 provides = duckstation-qt provides = duckstation - noextract = duckstation-qt-0.1.r6456.AppImage + noextract = duckstation-qt-0.1.r6515.AppImage options = !strip - source = duckstation-qt-0.1.r6456.AppImage::https://github.com/stenzek/duckstation/releases/download/latest/DuckStation-x64.AppImage - sha256sums = 8938fc3d0c3f73a25ebc29a957ff66cca53b11d18c16b35e75060b4a6be2ddd7 + source = duckstation-qt-0.1.r6515.AppImage::https://github.com/stenzek/duckstation/releases/download/latest/DuckStation-x64.AppImage + sha256sums = 1a524b5c18d2489e7f3e2af85afcfd02b313335f19e1046b5147c93001ded4ce pkgname = duckstation-qt-bin diff --git a/.gitignore b/.gitignore index 223fa0abd088..b18bdc126c28 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ pkg/ src/ *.tar.* *.AppImage +squashfs-root/ @@ -5,8 +5,8 @@ pkgname=duckstation-qt-bin _pkgname="${pkgname%-bin}" _fullname=org.duckstation.DuckStation -pkgver=0.1.r6456 -pkgrel=2 +pkgver=0.1.r6515 +pkgrel=1 pkgdesc="Fast PlayStation 1 emulator for PC and Android" arch=('x86_64') url='https://github.com/stenzek/duckstation' @@ -15,7 +15,7 @@ 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=('8938fc3d0c3f73a25ebc29a957ff66cca53b11d18c16b35e75060b4a6be2ddd7') +sha256sums=('1a524b5c18d2489e7f3e2af85afcfd02b313335f19e1046b5147c93001ded4ce') package() { chmod 755 "$srcdir/${_pkgname}-${pkgver}.AppImage" diff --git a/bump.sh b/bump.sh new file mode 100755 index 000000000000..86f442e326e0 --- /dev/null +++ b/bump.sh @@ -0,0 +1,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 |