diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -10,10 +10,11 @@ pkgname=chromium-no-extras _pkgname=chromium -pkgver=103.0.5060.53 +pkgver=103.0.5060.114 pkgrel=1 _launcher_ver=8 _gcc_patchset=4 +_manual_clone=1 pkgdesc="Chromium without hangout services, widevine, pipewire, or chromedriver" arch=('x86_64') url="https://www.chromium.org/Home" @@ -30,7 +31,7 @@ optdepends=( 'org.freedesktop.secrets: password storage backend on GNOME / Xfce' 'kwallet: support for storing passwords in KWallet on Plasma') options=('debug' '!lto') # Chromium adds its own flags for ThinLTO -source=(https://commondatastorage.googleapis.com/chromium-browser-official/$_pkgname-$pkgver.tar.xz +source=(https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver/chromium-launcher-$_launcher_ver.tar.gz https://github.com/stha09/chromium-patches/releases/download/chromium-${pkgver%%.*}-patchset-$_gcc_patchset/chromium-${pkgver%%.*}-patchset-$_gcc_patchset.tar.xz enable-GlobalMediaControlsCastStartStop.patch @@ -38,7 +39,7 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/$_pkg sql-make-VirtualCursor-standard-layout-type.patch remove-no-opaque-pointers-flag.patch use-oauth2-client-switches-as-default.patch) -sha256sums=('0ecbae14670506da90c8bf744f83f52a64a5fff0765c2e2e066b0e68b805b101' +sha256sums=('d359a415eca7beceddd1b06bb5b5b6a09da9c778ca37cfa4efeaeaa8691bfd52' '213e50f48b67feb4441078d50b0fd431df34323be15be97c55302d3fdac4483a' 'fed11a8987d9f9baa04457fb114f8f7fdb800300a3780927020865bcc43e4f52' '779fb13f2494209d3a7f1f23a823e59b9dded601866d3ab095937a1a04e19ac6' @@ -47,6 +48,11 @@ sha256sums=('0ecbae14670506da90c8bf744f83f52a64a5fff0765c2e2e066b0e68b805b101' '00c16ce83ea4ca924a50fa0cfc2b2a4d744c722f363b065323e6ba0fcbac45a5' 'e393174d7695d0bafed69e868c5fbfecf07aa6969f3b64596d0bae8b067e1711') +if (( _manual_clone )); then + source[0]=fetch-chromium-release + makedepends+=('python-httplib2' 'python-pyparsing' 'python-six') +fi + # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py # Keys are the names in the above script; values are the dependencies in Arch declare -gA _system_libs=( @@ -82,7 +88,10 @@ depends+=(${_system_libs[@]}) _google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM prepare() { - cd "$srcdir/$_pkgname-$pkgver" + if (( _manual_clone )); then + ./fetch-chromium-release $pkgver + fi + cd "$_pkgname-$pkgver" # Allow building against system libraries in official builds sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \ @@ -142,7 +151,7 @@ prepare() { build() { make -C chromium-launcher-$_launcher_ver - cd "$srcdir/$_pkgname-$pkgver" + cd "$_pkgname-$pkgver" export CC=clang export CXX=clang++ @@ -219,7 +228,7 @@ package() { install -Dm644 LICENSE \ "$pkgdir/usr/share/licenses/chromium/LICENSE.launcher" - cd "$srcdir/$_pkgname-$pkgver" + cd "../$_pkgname-$pkgver" install -D out/Release/chrome "$pkgdir/usr/lib/chromium/chromium" install -D out/Release/chromedriver.unstripped "$pkgdir/usr/bin/chromedriver" |