blob: 6a8a97c1c74d924e18c2add6eafe5a29fdbbd011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
pkgname=chromium-clang-avx2-bin
pkgver=137.0.7129.0
pkgrel=1
pkgdesc="Chromium browser compiled with the Clang/LLVM compiler."
arch=('x86_64')
url="https://github.com/RobRich999/Chromium_Clang"
license=('custom:chrome')
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=chromium-clang.install
_channel=unstable
_tag=1447845
_avx=avx2
source=("https://github.com/RobRich999/Chromium_Clang/releases/download/v${pkgver}-r${_tag}-linux64-deb-${_avx}/chromium-browser-${_channel}_${pkgver}-1_amd64.deb"
"chromium-browser-$_channel.sh")
sha512sums=('42c6aa384955d906cc36ae941cb6b4e68d4641e1733c26cde8a9f3f9d4f3fe1b169539eb4976cd10dd63d439c60429995ab7e90868239b7fd2a261d7baea15e2'
'478d382d96aca0c7d139282e8f4e9ab855e004f8cd9b15243c226b28282eb825e0bba5eb18cb17aea06e5637ece75d40d63fa9fee291f8b1528518975c0de095')
package() {
bsdtar -xf data.tar.xz -C "$pkgdir/"
# Launcher
install -m755 chromium-browser-$_channel.sh "$pkgdir"/usr/bin/chromium-browser-$_channel
# Icons
for i in 16x16 24x24 32x32 48x48 64x64 128x128 256x256; do
install -Dm644 "$pkgdir"/opt/chromium.org/chromium-unstable/product_logo_${i/x*/}.png \
"$pkgdir"/usr/share/icons/hicolor/$i/apps/chromium-browser-unstable.png
done
# Fix the Chrome desktop entry
sed -i \
-e "/Exec=/i\StartupWMClass=Chromium-browser" \
"$pkgdir"/usr/share/applications/chromium-browser-unstable.desktop
# Remove the Debian Cron job, duplicate product logos and menu directory
rm -r \
"$pkgdir"/etc/cron.daily/ \
"$pkgdir"/opt/chromium.org/chromium-unstable/cron/ \
"$pkgdir"/opt/chromium.org/chromium-unstable/product_logo_*.{png,xpm} \
"$pkgdir"/usr/share/menu/
# Remove Desktop
rm -r "$pkgdir"/usr/share/applications/org.chromium.Chromium.unstable.desktop
}
|