PKGBUILD 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Maintainer: Noah Vogt (noahvogt) <noah@noahvogt.com>
  2. pkgname=ungoogled-chromium-xdg-bin
  3. pkgver=108.0.5359.124
  4. pkgrel=1
  5. pkgdesc="A lightweight approach to removing Google web service dependency - without creating a useless ~/.pki directory (binary version)"
  6. arch=('x86_64')
  7. url="https://github.com/Eloston/ungoogled-chromium"
  8. license=('BSD')
  9. depends=('gtk3' 'nss' 'alsa-lib' 'xdg-utils' 'libxss' 'libcups' 'libgcrypt'
  10. 'ttf-liberation' 'systemd' 'dbus' 'libpulse' 'pciutils' 'libva'
  11. 'wayland' 'desktop-file-utils' 'hicolor-icon-theme')
  12. makedepends=()
  13. optdepends=('pipewire: WebRTC desktop sharing under Wayland'
  14. 'kdialog: support for native dialogs in Plasma'
  15. 'qt5-base: enable Qt5 with --enable-features=AllowQt'
  16. 'org.freedesktop.secrets: password storage backend on GNOME / Xfce'
  17. 'kwallet: support for storing passwords in KWallet on Plasma')
  18. options=('!lto') # Chromium adds its own flags for ThinLTO
  19. source=(https://github.com/noahvogt/${pkgname%-*}-aur/releases/download/$pkgver-$pkgrel/${pkgname%-*}-$pkgver-$pkgrel-x86_64.pkg.tar.zst
  20. index.html)
  21. sha256sums=('76e1f1e233c0464f128cc80250187d886155f16de2f80733fbd1a0ad879cc266'
  22. 'a4cdd2b86f32d5302c2792be841ff40d982b19bb58a4e63df9d77f4c706b8665')
  23. provides=('chromium')
  24. conflicts=('chromium')
  25. # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
  26. # Keys are the names in the above script; values are the dependencies in Arch
  27. declare -gA _system_libs=(
  28. [brotli]=brotli
  29. [dav1d]=dav1d
  30. [ffmpeg]=ffmpeg
  31. [flac]=flac
  32. [fontconfig]=fontconfig
  33. [freetype]=freetype2
  34. [harfbuzz-ng]=harfbuzz
  35. [icu]=icu
  36. [jsoncpp]=jsoncpp
  37. [libaom]=aom
  38. [libavif]=libavif
  39. [libdrm]=
  40. [libjpeg]=libjpeg
  41. [libpng]=libpng
  42. #[libvpx]=libvpx
  43. [libwebp]=libwebp
  44. [libxml]=libxml2
  45. [libxslt]=libxslt
  46. [opus]=opus
  47. [re2]=re2
  48. [snappy]=snappy
  49. [woff2]=woff2
  50. [zlib]=minizip
  51. )
  52. _unwanted_bundled_libs=(
  53. $(printf "%s\n" ${!_system_libs[@]} | sed 's/^libjpeg$/&_turbo/')
  54. )
  55. depends+=(${_system_libs[@]})
  56. package() {
  57. cp -R "${srcdir}/usr/" "${pkgdir}/usr"
  58. chown root "$pkgdir/usr/lib/chromium/chrome-sandbox"
  59. chmod 4755 "$pkgdir/usr/lib/chromium/chrome-sandbox"
  60. }