# Copyright (c) 2022 Alex313031, JPratama7, and Dominik Adrian Grzywak. # Maintainer: JPratama7 # Maintainer: Dominik Adrian Grzywak _pkgname=thorium-browser pkgbase=thorium-browser pkgname=${_pkgname}-bin pkgver=109.0.5414.120 pkgrel=1 pkgdesc="Chromium fork focused on high performance and security." arch=('x86_64') url="https://github.com/Alex313031/Thorium" license=('GPLv3') depends=( 'alsa-lib' 'gtk3' 'libcups' 'libxss' 'libxtst' 'nss' 'ttf-liberation' 'xdg-utils' ) optdepends=( 'pipewire: WebRTC desktop sharing under Wayland' 'kdialog: for file dialogs in KDE' 'gnome-keyring: for storing passwords in GNOME keyring' 'kwallet: for storing passwords in KWallet' ) options=('!emptydirs' '!strip') install=$_pkgname.install source=("https://github.com/Alex313031/Thorium/releases/download/M${pkgver}/${_pkgname}_${pkgver}_amd64.deb" "$_pkgname.sh") sha512sums=('c935f127abbc8e5dcf362a8f9687b5ea69d415efb256233e499bb273ec053fa2b7522b06ccb80387ed791289cd80dfdac1c36ed8dd3467fe757ce5ade4595891' '5e34cfbd67d86b31292a61eb5dcee68aeb2c4818bb557fa9aee458215eef8042c57be43b2250f5d89a66df90e4df6473a85688aa63ba2255e789d0f37ed83d8b') package() { echo " -> Extracting the data.tar.xz..." bsdtar -xf data.tar.xz -C "$pkgdir/" echo " -> Moving stuff in place..." # Launcher install -m755 $_pkgname.sh "$pkgdir"/usr/bin/$_pkgname chmod 4755 "$pkgdir/opt/chromium.org/thorium/chrome-sandbox" # Icons for i in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do install -Dm644 "$pkgdir"/opt/chromium.org/thorium/product_logo_${i/x*/}.png \ "$pkgdir"/usr/share/icons/hicolor/$i/apps/thorium-browser-stable.png done install -Dm644 "$pkgdir/opt/chromium.org/thorium/thorium_shell.png" -t \ "$pkgdir/usr/share/icons/hicolor/256x256/apps/" echo " -> Removing Debian Cron job, duplicate product logos and menu directory..." rm -r \ "$pkgdir"/etc/cron.daily/ \ "$pkgdir"/opt/chromium.org/thorium/cron/ \ "$pkgdir"/opt/chromium.org/thorium/product_logo_*.{png,xpm} \ "$pkgdir"/usr/share/menu/ }