summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-08-09 08:21:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-08-09 08:21:37 +0000
commit9c284d4c33a421b14bf1ccf6d1b95324875f6937 (patch)
treeca300dcedf58be132fcfdde49f2531a27f7397db
parent7edafd8c75a5804867c342da75efbfae6432ca41 (diff)
downloadabuild-9c284d4c33a421b14bf1ccf6d1b95324875f6937.tar.gz
abuild-9c284d4c33a421b14bf1ccf6d1b95324875f6937.tar.bz2
abuild-9c284d4c33a421b14bf1ccf6d1b95324875f6937.tar.xz
abuild-9c284d4c33a421b14bf1ccf6d1b95324875f6937.zip
abuild: convert -{alpha,beta,rc,pre} version suffixes from pkgconf
convert version suffixes in pkgconf modversion to something apk can deal with.
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 1bd4f17..e2df5ce 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1091,7 +1091,7 @@ prepare_pkgconfig_provides() {
fi
local f=${i##*/}
local v=$(PKG_CONFIG_PATH="$dir"/usr/lib/pkgconfig PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH=1 pkg-config \
- --modversion ${f%.pc})
+ --modversion ${f%.pc} | sed -E -e 's/-(alpha|beta|rc|pre)/_\1/')
$APK version --check --quiet $v || die "$i: pkgconf version $v is invalid"
echo "$pcprefix${f%.pc}=${v:-0}" >> "$controldir"/.provides-pc
done