protonup-qt РЕД ОС
This commit is contained in:
		
							
								
								
									
										3
									
								
								protonup-qt/ProtonUP-qt.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								protonup-qt/ProtonUP-qt.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | #!/bin/bash | ||||||
|  |  | ||||||
|  | /usr/bin/python -m pupgui2 "$@" | ||||||
| @@ -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') | 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') | 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-installer' 'python3-setuptools' 'python3-wheel') | ||||||
| build_deps_redos=('python3-build' 'python3-setuptools' 'python3-wheel' 'python3-pip') |  | ||||||
| deps_rosa=('python3-psutil' 'python3-requests' 'python3-setproctitle' 'python3-pyxdg' 'qt6-qttools') | deps_rosa=('python3-psutil' 'python3-requests' 'python3-setproctitle' 'python3-pyxdg' 'qt6-qttools') | ||||||
| build_deps_rosa=('python3-build' 'python3-setuptools' 'python3-wheel' 'python3-pip') | build_deps_rosa=('python3-build' 'python3-setuptools' 'python3-wheel' 'python3-pip') | ||||||
| #deps=('') | #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') | 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() { | build() { | ||||||
| 	cd "${srcdir}/ProtonUp-Qt-${version}" | 	cd "${srcdir}/ProtonUp-Qt-${version}" | ||||||
| 	python -m build --wheel --no-isolation | 	python -m build --wheel --no-isolation | ||||||
| @@ -39,7 +26,7 @@ build() { | |||||||
|  |  | ||||||
| package() { | package() { | ||||||
| 	cd "${srcdir}/ProtonUp-Qt-${version}" | 	cd "${srcdir}/ProtonUp-Qt-${version}" | ||||||
| 	#python -m installer --destdir="${pkgdir}" dist/*.whl | 	python3 -m installer --destdir="${pkgdir}" dist/*.whl | ||||||
| 	cp -r share "${pkgdir}/usr/" | 	cp -r ./share "${pkgdir}/usr/" | ||||||
| 	install -Dm755 "${srcdir}/pupgui2.sh" "${pkgdir}/usr/bin/${name}" | 	install -Dm755 "${scriptdir}/ProtonUP-qt.sh" "${pkgdir}/usr/bin/${name}" | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user