|
@@ -0,0 +1,109 @@
|
|
|
+# Maintainer: Noah Vogt (noahvogt) <noah@noahvogt.com>
|
|
|
+# Maintainer: Seppia <seppia@seppio.fish>
|
|
|
+# Maintainer: JustKidding <jk@vin.ovh>
|
|
|
+
|
|
|
+# Based on aur/chromium-vaapi, with ungoogled-chromium patches
|
|
|
+
|
|
|
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
|
|
|
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
|
|
+# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
|
|
|
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
|
|
|
+
|
|
|
+pkgname=ungoogled-chromium-xdg-bin
|
|
|
+pkgver=99.0.4844.84
|
|
|
+pkgrel=1
|
|
|
+_launcher_ver=8
|
|
|
+_gcc_patchset=3
|
|
|
+pkgdesc="A lightweight approach to removing Google web service dependency - without creating a useless ~/.pki directory (binary version)"
|
|
|
+arch=('x86_64')
|
|
|
+url="https://github.com/Eloston/ungoogled-chromium"
|
|
|
+license=('BSD')
|
|
|
+depends=('gtk3' 'nss' 'alsa-lib' 'xdg-utils' 'libxss' 'libcups' 'libgcrypt'
|
|
|
+ 'ttf-liberation' 'systemd' 'dbus' 'libpulse' 'pciutils' 'libva'
|
|
|
+ 'desktop-file-utils' 'hicolor-icon-theme')
|
|
|
+makedepends=()
|
|
|
+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')
|
|
|
+options=('!lto') # Chromium adds its own flags for ThinLTO
|
|
|
+source=(https://github.com/noahvogt/${pkgname%-*}-aur/releases/download/99.0.4844.84/$pkgname-$pkgver.tar.gz)
|
|
|
+sha256sums=('81cfbbe8047ec18a0c4ec9e22b9237a5a4f159d1949cd518dce051e4324caaf4')
|
|
|
+provides=('chromium')
|
|
|
+conflicts=('chromium')
|
|
|
+
|
|
|
+package() {
|
|
|
+ cd "$pkgname/chromium-launcher-$_launcher_ver"
|
|
|
+ make PREFIX=/usr DESTDIR="$pkgdir" install
|
|
|
+ install -Dm644 LICENSE \
|
|
|
+ "$pkgdir/usr/share/licenses/chromium/LICENSE.launcher"
|
|
|
+
|
|
|
+ cd "../src"
|
|
|
+
|
|
|
+ install -D out/Release/chrome "$pkgdir/usr/lib/chromium/chromium"
|
|
|
+ install -D out/Release/chromedriver "$pkgdir/usr/bin/chromedriver"
|
|
|
+ install -Dm4755 out/Release/chrome_sandbox "$pkgdir/usr/lib/chromium/chrome-sandbox"
|
|
|
+
|
|
|
+ install -Dm644 ../chromium-drirc-disable-10bpc-color-configs.conf \
|
|
|
+ "$pkgdir/usr/share/drirc.d/10-$pkgname.conf"
|
|
|
+
|
|
|
+ install -Dm644 chrome/installer/linux/common/desktop.template \
|
|
|
+ "$pkgdir/usr/share/applications/chromium.desktop"
|
|
|
+ install -Dm644 chrome/app/resources/manpage.1.in \
|
|
|
+ "$pkgdir/usr/share/man/man1/chromium.1"
|
|
|
+ sed -i \
|
|
|
+ -e 's/@@MENUNAME@@/Chromium/g' \
|
|
|
+ -e 's/@@PACKAGE@@/chromium/g' \
|
|
|
+ -e 's/@@USR_BIN_SYMLINK_NAME@@/chromium/g' \
|
|
|
+ "$pkgdir/usr/share/applications/chromium.desktop" \
|
|
|
+ "$pkgdir/usr/share/man/man1/chromium.1"
|
|
|
+
|
|
|
+ install -Dm644 chrome/installer/linux/common/chromium-browser/chromium-browser.appdata.xml \
|
|
|
+ "$pkgdir/usr/share/metainfo/chromium.appdata.xml"
|
|
|
+ sed -ni \
|
|
|
+ -e 's/chromium-browser\.desktop/chromium.desktop/' \
|
|
|
+ -e '/<update_contact>/d' \
|
|
|
+ -e '/<p>/N;/<p>\n.*\(We invite\|Chromium supports Vorbis\)/,/<\/p>/d' \
|
|
|
+ -e '/^<?xml/,$p' \
|
|
|
+ "$pkgdir/usr/share/metainfo/chromium.appdata.xml"
|
|
|
+
|
|
|
+ local toplevel_files=(
|
|
|
+ chrome_100_percent.pak
|
|
|
+ chrome_200_percent.pak
|
|
|
+ chrome_crashpad_handler
|
|
|
+ resources.pak
|
|
|
+ v8_context_snapshot.bin
|
|
|
+
|
|
|
+ # ANGLE
|
|
|
+ libEGL.so
|
|
|
+ libGLESv2.so
|
|
|
+
|
|
|
+ # SwiftShader ICD
|
|
|
+ libvk_swiftshader.so
|
|
|
+ vk_swiftshader_icd.json
|
|
|
+ )
|
|
|
+
|
|
|
+ #if [[ -z ${_system_libs[icu]+set} ]]; then
|
|
|
+ # toplevel_files+=(icudtl.dat)
|
|
|
+ #fi
|
|
|
+
|
|
|
+echo "${toplevel_files[@]}"
|
|
|
+
|
|
|
+ cp "${toplevel_files[@]/#/out/Release/}" "$pkgdir/usr/lib/chromium/"
|
|
|
+ install -Dm644 -t "$pkgdir/usr/lib/chromium/locales" out/Release/locales/*.pak
|
|
|
+ install -Dm755 -t "$pkgdir/usr/lib/chromium/swiftshader" out/Release/swiftshader/*.so
|
|
|
+
|
|
|
+ for size in 24 48 64 128 256; do
|
|
|
+ install -Dm644 "chrome/app/theme/chromium/product_logo_$size.png" \
|
|
|
+ "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png"
|
|
|
+ done
|
|
|
+
|
|
|
+ for size in 16 32; do
|
|
|
+ install -Dm644 "chrome/app/theme/default_100_percent/chromium/product_logo_$size.png" \
|
|
|
+ "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png"
|
|
|
+ done
|
|
|
+
|
|
|
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/chromium/LICENSE"
|
|
|
+}
|
|
|
+
|
|
|
+# vim:set ts=2 sw=2 et:
|