From 82ecad419f36cf4e7ad75fd4392972e8e1afd7db Mon Sep 17 00:00:00 2001 From: Mark Wagie Date: Fri, 27 May 2022 13:22:17 -0600 Subject: [PATCH] PKGBUILD improvements --- PKGBUILD | 57 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index d4d8ed9c..fde4ea1c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,41 +1,40 @@ # Copyright (c) 2022 Alex313031 and JPratama7 # Maintainer: JPratama7 -pkgbase=thorium-browser -pkgname=${pkgbase}-bin -pkgver=103.0.5006.0 +pkgname=thorium-browser-unstable-bin +pkgver=104.0.5083.0 pkgrel=1 -pkgdesc="The web browser from Chromium.org and The Thorium Authors. Thorium is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier." +pkgdesc="Chromium fork for Linux named after radioactive element No. 90." arch=('x86_64') -url="" +url="https://thorium.rocks" license=('GPL3') -depends=('gtk3' 'nss' 'alsa-lib' 'xdg-utils' 'libxss' 'libcups' 'libgcrypt' - 'ttf-liberation' 'libxtst' 'dbus' 'libpulse' 'pciutils' 'libva' - 'desktop-file-utils' 'hicolor-icon-theme') -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' - 'org.freedesktop.secrets: password storage backend on GNOME / Xfce' - 'kwallet: support for storing passwords in KWallet on Plasma' -) -provides=('chromium') +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') options=('!strip' '!emptydirs') -source_x86_64=("https://github.com/Alex313031/Thorium/releases/download/M${pkgver}/thorium-browser_${pkgver}-${pkgrel}_amd64.deb") -sha512sums_x86_64=('216ec81322ef3a8963e0844e24a78830c44811768bc6446f652df91317e3df40d68146c74f94fb064b97292677327f7e2ea8835ac985f5fa931b1aeeb2580d90') +source=("https://github.com/Alex313031/Thorium/releases/download/M${pkgver}/thorium-browser_${pkgver}-1_amd64.deb") +sha512sums=('cc0392baa4c8d866b1487ec4e740a5b810cd599848b438d7029d8268d3290336cafb68754705eba5c6362dff8dcd77759dbe476e7ace283db7027bf6108924dc') -package(){ - # Extract package data - tar xf data.tar.xz -C "${pkgdir}" +package() { + bsdtar -xf data.tar.xz -C "$pkgdir/" - chmod 4755 "$pkgdir/opt/chromium.org/thorium-unstable/chrome-sandbox" + chmod 4755 "$pkgdir/opt/chromium.org/thorium-unstable/chrome-sandbox" - rm -r "$pkgdir"/etc + 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/" - # install icons - for i in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do - install -Dm644 "${pkgdir}"/opt/chromium.org/thorium-unstable/product_logo_${i/x*}.png \ - "${pkgdir}"/usr/share/icons/hicolor/${i}/apps/thorium-browser-unstable.png - done + 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/ }