45 lines
1.5 KiB
Bash
45 lines
1.5 KiB
Bash
# Maintainer: Andre Schneider <andre.schneider@outlook.at>
|
|
|
|
pkgname=protonup-qt-bin
|
|
_pkgname=ProtonUp-Qt
|
|
pkgver=2.11.1
|
|
pkgrel=1
|
|
pkgdesc="Install and manage Proton-GE for Steam and Wine-GE for Lutris with this graphical user interface."
|
|
arch=('x86_64')
|
|
url="https://davidotek.github.io/protonup-qt"
|
|
license=('GPL3')
|
|
depends=('fuse2>=2.9.9')
|
|
provides=(protonup-qt)
|
|
conflicts=(protonup-qt)
|
|
options=(!strip)
|
|
source=(
|
|
"$_pkgname-$pkgver-$CARCH.AppImage::https://github.com/DavidoTek/ProtonUp-Qt/releases/download/v$pkgver/$_pkgname-$pkgver-$CARCH.AppImage"
|
|
"protonup-qt.desktop"
|
|
"protonup-qt"
|
|
)
|
|
sha256sums=('c4791e02abde5c5f182c5bca1d366d4af20d208a22aa135bc15b8a7e76877102'
|
|
'3d2e9dbb6eb0fa034db3c1b2384fd23a8b004c90a8f72afbe86baff714433da1'
|
|
'1baaba24e3fae798cde2f1801b9a0c5f92df5c61b0d8ba81c43731abcce44bc2')
|
|
|
|
prepare() {
|
|
# Exctract icons from AppImage
|
|
echo "Extracting icons from AppImage..."
|
|
chmod 755 "$_pkgname-$pkgver-$CARCH.AppImage"
|
|
./"$_pkgname-$pkgver-$CARCH.AppImage" --appimage-extract > /dev/null
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
|
|
# Install binary and launch script
|
|
install -Dm755 "$_pkgname-$pkgver-$CARCH.AppImage" "$pkgdir/opt/protonup-qt/protonup-qt.AppImage"
|
|
install -Dm755 -t "$pkgdir/usr/bin" "protonup-qt"
|
|
|
|
# Install icons and desktop file
|
|
cd "squashfs-root/usr/share/icons"
|
|
find "." -type f -exec install -Dm644 "{}" "$pkgdir/usr/share/icons/{}" \;
|
|
cd "$srcdir"
|
|
|
|
install -Dm644 -t "$pkgdir/usr/share/applications" "protonup-qt.desktop"
|
|
}
|