vala: make vapigen suspectible to wrapping.

This commit is contained in:
maxice8 2019-02-08 00:53:54 -02:00
parent 0b66a39a1f
commit c842dcafc3
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -1,7 +1,7 @@
# Template file for 'vala'
pkgname=vala
version=0.42.5
revision=4
revision=5
build_style=gnu-configure
configure_args="--disable-graphviz"
hostmakedepends="flex libxslt pkg-config automake libtool"
@ -28,6 +28,15 @@ pre_configure() {
autoreconf -fi
}
post_install() {
# remove the /usr/bin prefix from the vapigen variable
# so the package that use it fall into our wrapper.
# keep the binary versioned, we don't know the potential
# fallout from using the unversioned one
vsed -e 's|^vapigen=.*|vapigen=vapigen-0.42|g' \
-i ${DESTDIR}/usr/lib/pkgconfig/vapigen-0.42.pc
}
libvala_package() {
short_desc+=" - vala shared library"
pkg_install() {