From 5e44650ebde1c00344f518e681728ef35b959057 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 6 May 2025 11:18:41 -0400 Subject: [PATCH] common/hooks/pre-pkg/04-generate-provides: use xbps version instead of pc version this might be a little wrong sometimes, but xbps will choke if it's not a proper pkgver and the pc version isn't always useful --- common/hooks/pre-pkg/04-generate-provides.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/pre-pkg/04-generate-provides.sh b/common/hooks/pre-pkg/04-generate-provides.sh index ecbb938c9e4..6ce68f4b83f 100644 --- a/common/hooks/pre-pkg/04-generate-provides.sh +++ b/common/hooks/pre-pkg/04-generate-provides.sh @@ -23,7 +23,7 @@ generate_python_provides() { generate_pkgconfig_provides() { find "${PKGDESTDIR}/usr/lib/pkgconfig" "${PKGDESTDIR}/usr/share/pkgconfig" -name '*.pc' -type f \ - -exec pkg-config --print-provides {} \; 2>/dev/null | sed 's/^/pc:/; s/ = /-/' | sort -u + -exec pkg-config --print-provides {} \; 2>/dev/null | sed "s/^/pc:/; s/ =.*/-${version}_${revision}/" | sort -u } generate_cmd_provides() {