Browse Source

fix '_ungoogled_repo' var

Noah Vogt 3 years ago
parent
commit
62aea57d20
1 changed files with 2 additions and 2 deletions
  1. 2 2
      PKGBUILD

+ 2 - 2
PKGBUILD

@@ -153,7 +153,7 @@ prepare() {
 
 
   # Ungoogled Chromium changes
-  _ungoogled_repo="$srcdir/$pkgname-$pkgver-1"
+  _ungoogled_repo="$srcdir/${pkgname%xdg*}$pkgver-1"
   _utils="${_ungoogled_repo}/utils"
   python "$_utils/prune_binaries.py" ./ "$_ungoogled_repo/pruning.list"
   python "$_utils/patches.py" apply ./ "$_ungoogled_repo/patches"
@@ -217,7 +217,7 @@ build() {
   fi
 
   # Append ungoogled chromium flags to _flags array
-  _ungoogled_repo="$srcdir/$pkgname-$pkgver-1"
+  _ungoogled_repo="$srcdir/${pkgname%xdg*}$pkgver-1"
   readarray -t -O ${#_flags[@]} _flags < "${_ungoogled_repo}/flags.gn"
 
   # use fixed flags as system flags break build