forked from Plemya-x/alr-repo
		
	upd
This commit is contained in:
		| @@ -1,45 +1,54 @@ | |||||||
| name='portproton' | name='portproton' | ||||||
| version='1.0' | version='1.3' | ||||||
| release='1' | release='3' | ||||||
| desc='PortProton is a project designed to make it easy and convenient to run Windows games on Linux for both beginners and advanced users.' | desc='PortProton is a project designed to make it easy and convenient to run Windows games on Linux for both beginners and advanced users.' | ||||||
| homepage='https://linux-gaming.ru/' | homepage='https://linux-gaming.ru/' | ||||||
| maintainer="Евгений Храмов <xpamych@yandex.ru>" | maintainer="Евгений Храмов <xpamych@yandex.ru>" | ||||||
| architectures=('all') | architectures=('amd64') | ||||||
| licenses='MIT' | licenses='MIT' | ||||||
| provides=('portproton') | provides=('portproton') | ||||||
| conflicts=('portproton') | conflicts=('portproton') | ||||||
|  |  | ||||||
| deps_redos=('bubblewrap' 'cabextract' 'curl' 'icoutils' 'vulkan-loader' 'vulkan-loader(x86-32)' 'vulkan-tools' 'wget' 'zenity' 'zstd' 'ImageMagick') | deps_arch=('bash' 'icoutils' 'yad' 'bubblewrap' 'zstd' 'cabextract' 'gzip' | ||||||
| deps_arch=('bash' 'icoutils' 'wget' 'bubblewrap' 'zstd' 'cabextract' 'bc' 'tar' 'openssl' 'gamemode' 'desktop-file-utils' |          'tar' 'openssl' 'desktop-file-utils' 'curl' 'dbus' 'freetype2' 'xdg-utils' | ||||||
| 	'curl' 'dbus' 'freetype2' 'gdk-pixbuf2' 'ttf-font' 'zenity' 'lsb-release' 'nss' 'xorg-xrandr' 'vulkan-driver' 'vulkan-icd-loader' |          'gdk-pixbuf2' 'ttf-font' 'nss' 'xorg-xrandr' 'lsof' 'mesa-utils' | ||||||
| 	'lsof' 'lib32-freetype2' 'lib32-libgl' 'lib32-gcc-libs' 'lib32-libx11' 'lib32-libxss' 'lib32-alsa-plugins' 'lib32-libgpg-error' |          'vulkan-driver' 'vulkan-icd-loader' 'lib32-libgl' 'lib32-gcc-libs' 'vulkan-tools' | ||||||
| 	'lib32-nss' 'lib32-vulkan-driver' 'lib32-vulkan-icd-loader' 'lib32-gamemode' 'lib32-openssl' 'imagemagick') |          'lib32-libx11' 'lib32-libxss' 'lib32-alsa-plugins' 'lib32-libgpg-error' 'lib32-freetype2' | ||||||
| deps_debian=('curl' 'zenity' 'cabextract' 'bubblewrap' 'gamemode' 'icoutils' 'tar' 'wget' 'zstd' 'libvulkan1') |          'lib32-nss' 'lib32-vulkan-driver' 'lib32-vulkan-icd-loader' 'lib32-openssl' 'lib32-mesa-utils' 'python-pillow') | ||||||
| deps_fedora=('curl' 'gamemode' 'icoutils' 'libcurl' 'wget' 'zenity' 'bubblewrap' 'zstd' 'cabextract' 'tar' 'goverlay' 'openssl' | deps_debian=('curl' 'cabextract' 'bubblewrap' 'icoutils' 'tar' 'zstd' 'libvulkan1') | ||||||
|  | deps_fedora=('curl' 'icoutils' 'libcurl' 'bubblewrap' 'zstd' 'cabextract' 'tar' 'goverlay' 'openssl' | ||||||
| 	'vulkan-loader(x86-32)' 'vulkan-loader' 'mesa-vulkan-drivers' 'mesa-vulkan-drivers(x86-32)' 'mesa-libGL' 'mesa-dri-drivers' 'mesa-dri-drivers(x86-32)' 'imagemagick') | 	'vulkan-loader(x86-32)' 'vulkan-loader' 'mesa-vulkan-drivers' 'mesa-vulkan-drivers(x86-32)' 'mesa-libGL' 'mesa-dri-drivers' 'mesa-dri-drivers(x86-32)' 'imagemagick') | ||||||
|  | deps_redos=('bubblewrap' 'cabextract' 'curl' 'icoutils' 'vulkan-loader' 'vulkan-loader(x86-32)' 'vulkan-tools' 'zstd' 'ImageMagick') | ||||||
|  |  | ||||||
|  | opt_deps_arch=('gamemode: Support for Feral GameMode' | ||||||
|  |                'lib32-gamemode: 32-bit support for Feral GameMode' | ||||||
|  |                'gamescope: Support for Gamescope') | ||||||
|  | opt_deps_fedora=('gamemode: Support for Feral GameMode' | ||||||
|  |                'lib32-gamemode: 32-bit support for Feral GameMode' | ||||||
|  |                'gamescope: Support for Gamescope') | ||||||
|  | opt_deps_debian=('gamemode: Support for Feral GameMode' | ||||||
|  |                'lib32-gamemode: 32-bit support for Feral GameMode' | ||||||
|  |                'gamescope: Support for Gamescope') | ||||||
|  | opt_deps_redos=('gamemode: Support for Feral GameMode' | ||||||
|  |                'lib32-gamemode: 32-bit support for Feral GameMode' | ||||||
|  |                'gamescope: Support for Gamescope') | ||||||
|  |  | ||||||
| sources=( | sources=( | ||||||
| 	"https://raw.githubusercontent.com/Castro-Fidel/PortWINE/master/portwine_install_script/PortProton_1.0" | 	"https://github.com/Castro-Fidel/PortProton_ALT/archive/v${version}.tar.gz" | ||||||
| 	"git+https://github.com/Castro-Fidel/PortProton_PKGBUILD.git" |  | ||||||
| ) | ) | ||||||
|  |  | ||||||
| checksums=( | checksums=( | ||||||
| 	'SKIP' | 	'SKIP' | ||||||
| 	'SKIP' |  | ||||||
| ) | ) | ||||||
|  |  | ||||||
| prepare() { | scripts=( | ||||||
| 	cd "${srcdir}" |     ['preinstall']='preinstall.sh' | ||||||
| 	if grep -q ID=debian "/etc/os-release"; then | ) | ||||||
| 		sudo dpkg --add-architecture i386 |  | ||||||
| 		sudo apt-get install libvulkan1:i386 |  | ||||||
| 		sudo apt-get update |  | ||||||
| 	elif grep -q ID=fedora "/etc/os-release"; then |  | ||||||
| 		sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm |  | ||||||
| 		sudo dnf update |  | ||||||
| 		sudo dnf upgrade --refresh |  | ||||||
| 	fi |  | ||||||
| } |  | ||||||
|  |  | ||||||
| package() { | package() { | ||||||
|  |    cd PortProton_ALT-1.3 | ||||||
| 	install -Dm755 "PortProton_${version}" "${pkgdir}/usr/bin/${name}" | 	install -Dm755 "PortProton_${version}" "${pkgdir}/usr/bin/${name}" | ||||||
|  |     install -Dm644 "${name}.desktop" "${pkgdir}/usr/share/applications/${name}.desktop" | ||||||
|  |     install -Dm644 "${name}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${name}.svg" | ||||||
|  |     install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${name}/LICENSE" | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										9
									
								
								portproton/preinstall.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								portproton/preinstall.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | 	if grep -q ID=debian "/etc/os-release"; then | ||||||
|  | 		sudo dpkg --add-architecture i386 | ||||||
|  | 		sudo apt-get install libvulkan1:i386 | ||||||
|  | 		sudo apt-get update | ||||||
|  | 	elif grep -q ID=fedora "/etc/os-release"; then | ||||||
|  | 		sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | ||||||
|  | 		sudo dnf update | ||||||
|  | 		sudo dnf upgrade --refresh | ||||||
|  | 	fi | ||||||
		Reference in New Issue
	
	Block a user