mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
PKGBUILD improvements
This commit is contained in:
parent
7d4e039884
commit
82ecad419f
1 changed files with 28 additions and 29 deletions
57
PKGBUILD
57
PKGBUILD
|
@ -1,41 +1,40 @@
|
|||
# Copyright (c) 2022 Alex313031 and JPratama7
|
||||
# Maintainer: JPratama7 <josepratama080@gmail.com>
|
||||
|
||||
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/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue