Browse Source

rearrange PKGBUILD and add needed build flag

Noah Vogt 1 year ago
parent
commit
733cd91d9f
1 changed files with 8 additions and 9 deletions
  1. 8 9
      PKGBUILD

+ 8 - 9
PKGBUILD

@@ -214,6 +214,7 @@ build() {
     'custom_toolchain="//build/toolchain/linux/unbundle:default"'
     'custom_toolchain="//build/toolchain/linux/unbundle:default"'
     'host_toolchain="//build/toolchain/linux/unbundle:default"'
     'host_toolchain="//build/toolchain/linux/unbundle:default"'
     'clang_base_path="/usr"'
     'clang_base_path="/usr"'
+    'clang_use_chrome_plugins=false'
     'is_official_build=true' # implies is_cfi=true on x86_64
     'is_official_build=true' # implies is_cfi=true on x86_64
     'symbol_level=0' # sufficient for backtraces on x86(_64)
     'symbol_level=0' # sufficient for backtraces on x86(_64)
     'chrome_pgo_phase=0' # needs newer clang to read the bundled PGO profile
     'chrome_pgo_phase=0' # needs newer clang to read the bundled PGO profile
@@ -231,22 +232,20 @@ build() {
     'enable_widevine=true'
     'enable_widevine=true'
     'enable_nacl=false'
     'enable_nacl=false'
     'enable_rust=false'
     'enable_rust=false'
-    'use_vaapi=true'
-    'enable_platform_hevc=true'
-    'enable_hevc_parser_and_hw_decoder=true'
   )
   )
 
 
   if [[ -n ${_system_libs[icu]+set} ]]; then
   if [[ -n ${_system_libs[icu]+set} ]]; then
     _flags+=('icu_use_data_file=false')
     _flags+=('icu_use_data_file=false')
   fi
   fi
 
 
+  # enable HEVC decoding
+  _flags+=(
+    'enable_platform_hevc=true'
+    'enable_hevc_parser_and_hw_decoder=true'
+  )
+
   # Append ungoogled chromium flags to _flags array
   # Append ungoogled chromium flags to _flags array
-  if [[ -d "$srcdir/${pkgname%xdg*}$_uc_ver" ]]
-  then
-    _ungoogled_repo="$srcdir/${pkgname%xdg*}$_uc_ver"
-  else
-    _ungoogled_repo="$srcdir/${pkgname%xdg*}update"
-  fi
+    _ungoogled_repo="$srcdir/${pkgname%xdg*}-$_uc_ver"
   readarray -t -O ${#_flags[@]} _flags < "${_ungoogled_repo}/flags.gn"
   readarray -t -O ${#_flags[@]} _flags < "${_ungoogled_repo}/flags.gn"
 
 
   # Facilitate deterministic builds (taken from build/config/compiler/BUILD.gn)
   # Facilitate deterministic builds (taken from build/config/compiler/BUILD.gn)