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
This commit is contained in:
classabbyamp 2025-05-06 11:18:41 -04:00 committed by classabbyamp
parent 55a1b08169
commit 5e44650ebd

View file

@ -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() {