mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 23:12:45 +00:00
abuild: convert -{alpha,beta,rc,pre} version suffixes from pkgconf
convert version suffixes in pkgconf modversion to something apk can deal with.
This commit is contained in:
parent
7edafd8c75
commit
9c284d4c33
@ -1091,7 +1091,7 @@ prepare_pkgconfig_provides() {
|
|||||||
fi
|
fi
|
||||||
local f=${i##*/}
|
local f=${i##*/}
|
||||||
local v=$(PKG_CONFIG_PATH="$dir"/usr/lib/pkgconfig PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH=1 pkg-config \
|
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"
|
$APK version --check --quiet $v || die "$i: pkgconf version $v is invalid"
|
||||||
echo "$pcprefix${f%.pc}=${v:-0}" >> "$controldir"/.provides-pc
|
echo "$pcprefix${f%.pc}=${v:-0}" >> "$controldir"/.provides-pc
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user