about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xxpcdeps5
1 files changed, 3 insertions, 2 deletions
diff --git a/xpcdeps b/xpcdeps
index bb4ac44..ea9bac2 100755
--- a/xpcdeps
+++ b/xpcdeps
@@ -17,8 +17,9 @@ create_pcfile() {
 		for rpkg in $( xbps-query --repository=hostdir/binpkgs/"$branch" --cat="$file" "$pkgname" | grep Requires: | cut -d: -f2 | sed 's/,/ /g' ) ; do
 			# This makes the iterator ignore over the version specifier available for pkg-config
 			# >=, <=, >, <, =, and also ignore versions by ignoring everything that doesn't have
-			# a letter
-			[ -z "${rpkg##*[<=>]*}" ] && continue
+			# a letter, we also ignore $ { } because some package like mutter define a requires=
+			# variable and then makes the actual Requires: be ${requires}
+			[ -z "${rpkg##*[\{<=>\}\$]*}" ] && continue
 			[ -z "${rpkg##*[a-zA-Z]*}" ] || continue
 			printf "%s\\n" "$rpkg" >> "$tempdir/$1.pc"
 		done