thorium-mirror/PKGBUILD

41 lines
1.7 KiB
Text
Raw Normal View History

2022-04-18 15:52:17 -04:00
# Copyright (c) 2022 Alex313031 and JPratama7
2022-04-17 12:37:58 -04:00
# Maintainer: JPratama7 <josepratama080@gmail.com>
2022-05-27 15:22:17 -04:00
pkgname=thorium-browser-unstable-bin
pkgver=104.0.5083.0
2022-04-17 12:37:58 -04:00
pkgrel=1
2022-05-27 15:22:17 -04:00
pkgdesc="Chromium fork for Linux named after radioactive element No. 90."
2022-04-17 12:37:58 -04:00
arch=('x86_64')
2022-05-27 15:22:17 -04:00
url="https://thorium.rocks"
2022-04-17 12:37:58 -04:00
license=('GPL3')
2022-05-27 15:22:17 -04:00
depends=('alsa-lib' 'ca-certificates' 'dbus' 'gtk3' 'libcups' 'nss' 'ttf-liberation' 'xdg-utils')
optdepends=('pipewire: WebRTC desktop sharing under Wayland'
'kdialog: support for native dialogs in Plasma'
'org.freedesktop.secrets: password storage backend on GNOME / Xfce'
'kwallet: support for storing passwords in KWallet on Plasma')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}" 'chromium')
2022-04-17 12:37:58 -04:00
options=('!strip' '!emptydirs')
2022-05-27 15:22:17 -04:00
source=("https://github.com/Alex313031/Thorium/releases/download/M${pkgver}/thorium-browser_${pkgver}-1_amd64.deb")
sha512sums=('cc0392baa4c8d866b1487ec4e740a5b810cd599848b438d7029d8268d3290336cafb68754705eba5c6362dff8dcd77759dbe476e7ace283db7027bf6108924dc')
2022-04-17 12:37:58 -04:00
2022-05-27 15:22:17 -04:00
package() {
bsdtar -xf data.tar.xz -C "$pkgdir/"
2022-04-17 12:37:58 -04:00
2022-05-27 15:22:17 -04:00
chmod 4755 "$pkgdir/opt/chromium.org/thorium-unstable/chrome-sandbox"
2022-04-17 12:37:58 -04:00
2022-05-27 15:22:17 -04:00
for icon_size in 16 24 32 48 64 128 256; do
icons_dir=usr/share/icons/hicolor/${icon_size}x${icon_size}/apps
install -Dm644 "$pkgdir/opt/chromium.org/thorium-unstable/product_logo_${icon_size}.png" \
"$pkgdir/${icons_dir}/${pkgname%-bin}.png"
done
install -Dm644 "$pkgdir/opt/chromium.org/thorium-unstable/thorium-devtools.png" -t \
"$pkgdir/usr/share/icons/hicolor/256x256/apps/"
2022-04-17 12:37:58 -04:00
2022-05-27 15:22:17 -04:00
rm -r \
"$pkgdir"/etc/ \
"$pkgdir"/opt/chromium.org/thorium-unstable/cron/ \
"$pkgdir"/opt/chromium.org/thorium-unstable/product_logo_*.{png,xpm} \
"$pkgdir"/usr/share/menu/
2022-04-18 15:52:17 -04:00
}