name='portproton' version='1.0' release='1' 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/' architectures='amd64' licenses='MIT' provides='portproton' conflicts='portproton' deps_redos=('bubblewrap' 'cabextract' 'curl' 'icoutils' 'vulkan-loader' 'vulkan-tools' 'wget' 'zenity' 'zstd') deps_arch=('bash' 'icoutils' 'wget' 'bubblewrap' 'zstd' 'cabextract' 'bc' 'tar' 'openssl' 'gamemode' 'desktop-file-utils' 'curl' 'dbus' 'freetype2' 'gdk-pixbuf2' 'ttf-font' 'zenity' 'lsb-release' 'nss' 'xorg-xrandr' 'vulkan-driver' 'vulkan-icd-loader' 'lsof' 'lib32-freetype2' 'lib32-libgl' 'lib32-gcc-libs' 'lib32-libx11' 'lib32-libxss' 'lib32-alsa-plugins' 'lib32-libgpg-error' 'lib32-nss' 'lib32-vulkan-driver' 'lib32-vulkan-icd-loader' 'lib32-gamemode' 'lib32-openssl') deps_debian=('bash') #build_deps=('') sources=("git+https://github.com/Castro-Fidel/PortWINE.git") checksums=('SKIP') prepare() { cd "${srcdir}/PortWINE/" echo "[Desktop Entry]" >>portproton.desktop echo "Name=PortProton" >>portproton.desktop echo "Exec=env /home/e.khramov@odk.local/LinuxGaming/PortProton/data/scripts/start.sh %F" >>portproton.desktop echo "Type=Application" >>portproton.desktop echo "Terminal=False" >>portproton.desktop echo "Categories=Game" >>portproton.desktop echo "StartupNotify=true" >>portproton.desktop echo "MimeType=application/x-ms-dos-executable;application/x-wine-extension-msp;application/x-msi;application/x-msdos-program" >>portproton.desktop echo "Path=$HOME/PortProton/data/scripts/" >>portproton.desktop echo "Icon=$HOME/PortProton/data/img/w.png" >>portproton.desktop } package() { install -Dm644 "${srcdir}/PortWINE/portproton.desktop" "${pkgdir}/${HOME}/.local/share/applications/portproton.desktop" install -dm755 "${pkgdir}/${HOME}/.local/share/portproton" ln - "${pkgdir}/${HOME}/.local/share/portproton" "${HOME}/LinuxGaming/PortProton/" cd "${srcdir}/PortWINE/data_from_portwine/" find -type d -exec install -d {,"${pkgdir}/${HOME}/.local/share/portproton/"}{} \; find -type f -exec install -D {,"${pkgdir}/${HOME}/.local/share/portproton/"}{} \; }