From f6c170a24bc59177162e18851d1e282f6df9cad1 Mon Sep 17 00:00:00 2001 From: "e.khramov" Date: Mon, 7 Nov 2022 11:33:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20build,=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protonup-qt/lure.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/protonup-qt/lure.sh b/protonup-qt/lure.sh index 1253c5f..834a6a8 100644 --- a/protonup-qt/lure.sh +++ b/protonup-qt/lure.sh @@ -19,12 +19,22 @@ checksums=('SKIP') prepare() { cd "${srcdir}" -if [distro=redos] +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 fi } -package() { -install -Dm755 "" "${pkgdir}/usr/bin/${name}" +build() { +cd "ProtonUp-Qt-${version}" +python -m build --wheel --no-isolation +} + +package() { +python -m installer --destdir="${pkgdir}" dist/*.whl +cp -r share "${pkgdir}/usr/" +install -Dm755 "${srcdir}/pupgui2.sh" "${pkgdir}/usr/bin/${name}" }