Skip to content
Snippets Groups Projects
Commit ac45be0c authored by Sertonix's avatar Sertonix Committed by Natanael Copa
Browse files

abuild: strip leading v from pkgconfig versions

parent d85ea24e
No related branches found
No related tags found
1 merge request!303abuild: detected provider improvements
......@@ -1272,6 +1272,7 @@ prepare_pkgconfig_provides() {
local v=$(PKG_CONFIG_PATH="$dir"/usr/lib/pkgconfig:"$dir"/usr/share/pkgconfig \
PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH=1 pkg-config \
--modversion ${f%.pc} | sed -E -e 's/-(alpha|beta|rc|pre)/_\1/')
v=${v#v}
$APK version --check --quiet $v || die "$i: pkgconf version $v is invalid"
echo "$pcprefix${f%.pc}=${v:-0}" >> "$controldir"/.provides-pc
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment