diff options
author | PedroHLC | 2022-03-08 07:53:32 -0300 |
---|---|---|
committer | PedroHLC | 2022-03-08 07:53:32 -0300 |
commit | ddcff006141bd56f2557473a420b3c7eaf35b902 (patch) | |
tree | a65ac14a9000fcba9730c4d358946cf47c2e47db | |
parent | 248a5fbc8432ef2e8d81ed65d2e29589e149d709 (diff) | |
download | aur-ddcff006141bd56f2557473a420b3c7eaf35b902.tar.gz |
Format
-rw-r--r-- | PKGBUILD | 100 |
1 files changed, 51 insertions, 49 deletions
@@ -4,6 +4,8 @@ ## Linted using: ## $ shellcheck PKGBUILD -e SC2034,SC2148,SC2154 +## Formated using: +## $ shfmt -w PKGBUILD ## pkginfo pkgdesc='A fancy custom distribution of Valves Proton with various patches' @@ -19,32 +21,32 @@ conflicts=('proton-ge-custom') ## dependencies depends=('python' - 'vulkan-icd-loader' - 'lib32-libusb' - 'lib32-openal' - # libav support # - 'lib32-libva' - 'ffmpeg4.4' - 'lib32-speex' - 'lib32-libtheora' - 'lib32-libvdpau' - # gstreamer support # - 'gst-plugins-bad-libs' - 'lib32-gst-plugins-base-libs' - 'libjpeg6-turbo' - 'lib32-libjpeg6-turbo' - 'lib32-libgudev' - 'lib32-flac' - 'lib32-mpg123') + 'vulkan-icd-loader' + 'lib32-libusb' + 'lib32-openal' + # libav support # + 'lib32-libva' + 'ffmpeg4.4' + 'lib32-speex' + 'lib32-libtheora' + 'lib32-libvdpau' + # gstreamer support # + 'gst-plugins-bad-libs' + 'lib32-gst-plugins-base-libs' + 'libjpeg6-turbo' + 'lib32-libjpeg6-turbo' + 'lib32-libgudev' + 'lib32-flac' + 'lib32-mpg123') optdepends=('kdialog: KDE splash dialog support' - 'zenity: GNOME splash dialog support' - 'python-kivy: splash dialog support (big picture mode)' - 'steam: use proton with steam like intended' - 'lib32-vulkan-icd-loader: dxvk dependency for 32bit prefixes' - 'vulkan-driver: driver to be used by dxvk' - 'winetricks: protonfixes backend - highly recommended' - 'wine: support for 32bit prefixes' - 'xboxdrv: gamepad driver service') + 'zenity: GNOME splash dialog support' + 'python-kivy: splash dialog support (big picture mode)' + 'steam: use proton with steam like intended' + 'lib32-vulkan-icd-loader: dxvk dependency for 32bit prefixes' + 'vulkan-driver: driver to be used by dxvk' + 'winetricks: protonfixes backend - highly recommended' + 'wine: support for 32bit prefixes' + 'xboxdrv: gamepad driver service') ## makepkg options options=('!strip') @@ -66,34 +68,34 @@ backup=("${_protoncfg}") ## sources url='https://github.com/GloriousEggroll/proton-ge-custom' source=("${_pkgver}_${pkgrel}.tar.gz::${url}/releases/download/${_pkgver}/${_pkgver}.tar.gz" - "supplementary.tar.zst") + 'supplementary.tar.zst') sha512sums=('0da118a8acd380336b40fa18bff4f3e8825c5c27c6101373143afff4864748a06bc0f1d17f9ed79fab94844f2958fe627909552c79aba8204a14596ff14ae8de' - 'a484c4cd2003057cf0cbbd32ca5d0106e97c75434e7bef34b35be8239ad98a482358852e41e85abedf5b24ac4d0375c8fffc7deee81a9b08c7799a398f23773b') + 'a484c4cd2003057cf0cbbd32ca5d0106e97c75434e7bef34b35be8239ad98a482358852e41e85abedf5b24ac4d0375c8fffc7deee81a9b08c7799a398f23773b') build() { -## patches -sed -i "s|_proton=echo|_proton=/${_protondir}/proton|" "${srcdir}"/launchers/proton.sh -sed -i -r 's|"GE-Proton.*"|"Proton-GE"|' "${_srcdir}"/compatibilitytool.vdf -## remove artifacts -rm "${_srcdir}"/protonfixes/*.tar.xz -rm -rf "${_srcdir}"/protonfixes/.git* -## fixes from namcap inspection -strip --preserve-dates --strip-unneeded "${_srcdir}"/files/bin/wine* + ## patches + sed -i "s|_proton=echo|_proton=/${_protondir}/proton|" "${srcdir}"/launchers/proton.sh + sed -i -r 's|"GE-Proton.*"|"Proton-GE"|' "${_srcdir}"/compatibilitytool.vdf + ## remove artifacts + rm "${_srcdir}"/protonfixes/*.tar.xz + rm -rf "${_srcdir}"/protonfixes/.git* + ## fixes from namcap inspection + strip --preserve-dates --strip-unneeded "${_srcdir}"/files/bin/wine* } package() { -## create paths -install -d "${pkgdir}/${_protondir}/" -install -d "${pkgdir}/${_licensedir}/" -install -d "${pkgdir}/$(dirname ${_execfile})/" -## licenses -mv "${_srcdir}/LICENSE" "${pkgdir}/${_licensedir}/license" -mv "${_srcdir}/LICENSE.OFL" "${pkgdir}/${_licensedir}/license_OFL" -mv "${_srcdir}/PATENTS.AV1" "${pkgdir}/${_licensedir}/license_AV1" -mv "${_srcdir}/protonfixes/LICENSE" "${pkgdir}/${_licensedir}/license_protonfixes" -## config files -install --mode=0775 --group=50 "${srcdir}"/configs/user_settings.py "${pkgdir}/${_protoncfg}" -## executables -mv "${_srcdir}"/* "${pkgdir}/${_protondir}" -install --mode=0755 "${srcdir}"/launchers/proton.sh "${pkgdir}/${_execfile}" + ## create paths + install -d "${pkgdir}/${_protondir}/" + install -d "${pkgdir}/${_licensedir}/" + install -d "${pkgdir}/$(dirname ${_execfile})/" + ## licenses + mv "${_srcdir}/LICENSE" "${pkgdir}/${_licensedir}/license" + mv "${_srcdir}/LICENSE.OFL" "${pkgdir}/${_licensedir}/license_OFL" + mv "${_srcdir}/PATENTS.AV1" "${pkgdir}/${_licensedir}/license_AV1" + mv "${_srcdir}/protonfixes/LICENSE" "${pkgdir}/${_licensedir}/license_protonfixes" + ## config files + install --mode=0775 --group=50 "${srcdir}"/configs/user_settings.py "${pkgdir}/${_protoncfg}" + ## executables + mv "${_srcdir}"/* "${pkgdir}/${_protondir}" + install --mode=0755 "${srcdir}"/launchers/proton.sh "${pkgdir}/${_execfile}" } |