PKGBUILD 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Maintainer: Noah Vogt (noahvogt) <noah@noahvogt.com>
  2. pkgname=ungoogled-chromium-xdg-bin
  3. pkgver=122.0.6261.57
  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. source=(https://github.com/noahvogt/${pkgname%-*}-aur/releases/download/$pkgver-$pkgrel/${pkgname%-*}-$pkgver-$pkgrel-x86_64.pkg.tar.zst
  19. index.html)
  20. sha256sums=('7719916826ca6ca8e318d7a6c57ebaa73e4f31524240885ca3b41564cef86b1a'
  21. 'a4cdd2b86f32d5302c2792be841ff40d982b19bb58a4e63df9d77f4c706b8665')
  22. provides=('chromium')
  23. conflicts=('chromium')
  24. # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
  25. # Keys are the names in the above script; values are the dependencies in Arch
  26. declare -gA _system_libs=(
  27. #[brotli]=brotli
  28. [dav1d]=dav1d
  29. [ffmpeg]=ffmpeg
  30. [flac]=flac
  31. [fontconfig]=fontconfig
  32. [freetype]=freetype2
  33. [harfbuzz-ng]=harfbuzz
  34. [icu]=icu
  35. [jsoncpp]=jsoncpp
  36. #[libaom]=aom
  37. #[libavif]=libavif
  38. [libdrm]=
  39. [libjpeg]=libjpeg
  40. [libpng]=libpng
  41. #[libvpx]=libvpx
  42. [libwebp]=libwebp
  43. [libxml]=libxml2
  44. [libxslt]=libxslt
  45. [opus]=opus
  46. [re2]=re2
  47. [snappy]=snappy
  48. [woff2]=woff2
  49. [zlib]=minizip
  50. )
  51. _unwanted_bundled_libs=(
  52. $(printf "%s\n" ${!_system_libs[@]} | sed 's/^libjpeg$/&_turbo/')
  53. )
  54. depends+=(${_system_libs[@]})
  55. package() {
  56. cp -R "${srcdir}/usr/" "${pkgdir}/usr"
  57. chown root "$pkgdir/usr/lib/chromium/chrome-sandbox"
  58. chmod 4755 "$pkgdir/usr/lib/chromium/chrome-sandbox"
  59. }