# Maintainer: agentcobra # Contributor: Nover # Creator Blade # Made with https://github.com/NicolasGuilloux/blade-shadow-beta _commit=9add3366d25530d51d168608c54b5339b64d2a4e pkgname=shadow-beta pkgver=0.9.22 pkgrel=6 pkgdesc="Shadow launcher" arch=('x86_64') url="http://shadow.tech" license=('unknown') depends=('desktop-file-utils' 'freetype2' 'libuv' 'gconf' 'hicolor-icon-theme' 'json-c' 'libappindicator-gtk2' 'libbsd' 'libcurl-gnutls' 'libdrm' 'libnotify' 'libva' 'libxtst' 'nss' 'opus' 'qt5-base' 'qt5-svg' 'sdl2' 'libappindicator' 'libcurl-compat' 'sdl' 'gcc7-libs' 'ttf-dejavu' 'libxss') provides=(shadow-beta) source=('https://update.shadow.tech/renderer/preprod/linux/bionic/shadow-beta-bionic.zip' 'https://raw.githubusercontent.com/NicolasGuilloux/blade-shadow-beta/'${_commit}'/AppImage/wrapper.pl' 'https://raw.githubusercontent.com/NicolasGuilloux/blade-shadow-beta/'${_commit}'/AppImage/report.pl') md5sums=('4a3927cdf91249a86b8a628c6c5bff61' SKIP SKIP) install=$pkgname.install # Build the package package() { ### Extract the deb ar xv shadow/shadow-beta-bionic-*.deb ### Extract the data bsdtar xf data.tar.xz chmod -R g-w usr mv usr "${pkgdir}" chmod -R g-w opt mv opt "${pkgdir}" # Move the source directory cd "$srcdir" ### Move the Wrapper chmod g-w wrapper.pl chmod +x wrapper.pl mv wrapper.pl "${pkgdir}/opt/shadowbeta/shadow-wrapper.pl" ### Move the Report.pl chmod g-w report.pl chmod +x report.pl mv report.pl "${pkgdir}/opt/shadowbeta/report.pl" ### Edit launcher sed -e 's/^Exec=.*$/Exec="\/opt\/shadowbeta\/shadow-wrapper.pl"/g' -e 's/^Categories=.*$/Categories=Games;Utility;Virtualization/g' "${pkgdir}/usr/share/applications/shadow-beta.desktop" > shadow-beta.desktop chmod g-w shadow-beta.desktop rm "${pkgdir}/usr/share/applications/shadow-beta.desktop" mv shadow-beta.desktop "${pkgdir}/usr/share/applications/shadow-beta.desktop" }