From 19dcc01da5443c4f2c6611b722fa216131975d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Mon, 10 Jun 2024 00:51:13 +0300 Subject: [PATCH] =?UTF-8?q?protonup-qt=20=D0=A0=D0=95=D0=94=20=D0=9E=D0=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protonup-qt/ProtonUP-qt.sh | 3 +++ protonup-qt/alr.sh | 23 +++++------------------ 2 files changed, 8 insertions(+), 18 deletions(-) create mode 100644 protonup-qt/ProtonUP-qt.sh diff --git a/protonup-qt/ProtonUP-qt.sh b/protonup-qt/ProtonUP-qt.sh new file mode 100644 index 0000000..f756792 --- /dev/null +++ b/protonup-qt/ProtonUP-qt.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +/usr/bin/python -m pupgui2 "$@" diff --git a/protonup-qt/alr.sh b/protonup-qt/alr.sh index c591a0a..eedf280 100644 --- a/protonup-qt/alr.sh +++ b/protonup-qt/alr.sh @@ -11,27 +11,14 @@ conflicts=('protonup-qt') deps_arch=('pyside6' 'python-inputs' 'python-psutil' 'python-requests' 'python-setproctitle' 'python-steam' 'python-vdf' 'python-pyxdg' 'python-pyaml' 'qt6-tools') build_deps_arch=('python3-build' 'python-setuptools' 'python-wheel') -deps_redos=('python3-psutil' 'python3-requests' 'python3-setproctitle' 'python3-pyxdg' 'qt6-tools') -build_deps_redos=('python3-build' 'python3-setuptools' 'python3-wheel' 'python3-pip') +build_deps_redos=('python3-build' 'python3-installer' 'python3-setuptools' 'python3-wheel') deps_rosa=('python3-psutil' 'python3-requests' 'python3-setproctitle' 'python3-pyxdg' 'qt6-qttools') build_deps_rosa=('python3-build' 'python3-setuptools' 'python3-wheel' 'python3-pip') #deps=('') -sources=("https://github.com/DavidoTek/ProtonUp-Qt/archive/refs/tags/v2.7.4.tar.gz") +sources=("https://github.com/DavidoTek/ProtonUp-Qt/archive/refs/tags/v${version}.tar.gz") checksums=('SKIP') -prepare() { - cd "${srcdir}" - echo "#!/usr/bin/env bash" >>pupgui2.sh - echo "/usr/bin/python -m pupgui2 \"\$@\"" >>pupgui2.sh - - if [$distro==redos]; then - sudo pip install pyside6 inputs steam vdf pyaml - elif [$distro==rosa]; then - sudo pip install pyside6 inputs steam vdf pyaml - fi -} - build() { cd "${srcdir}/ProtonUp-Qt-${version}" python -m build --wheel --no-isolation @@ -39,7 +26,7 @@ build() { package() { cd "${srcdir}/ProtonUp-Qt-${version}" - #python -m installer --destdir="${pkgdir}" dist/*.whl - cp -r share "${pkgdir}/usr/" - install -Dm755 "${srcdir}/pupgui2.sh" "${pkgdir}/usr/bin/${name}" + python3 -m installer --destdir="${pkgdir}" dist/*.whl + cp -r ./share "${pkgdir}/usr/" + install -Dm755 "${scriptdir}/ProtonUP-qt.sh" "${pkgdir}/usr/bin/${name}" }