From c842dcafc3248acce646095e6dfa68e15a1e1bdb Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 8 Feb 2019 00:53:54 -0200 Subject: [PATCH] vala: make vapigen suspectible to wrapping. --- srcpkgs/vala/template | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/srcpkgs/vala/template b/srcpkgs/vala/template index ecbbb8c178..ced3174cac 100644 --- a/srcpkgs/vala/template +++ b/srcpkgs/vala/template @@ -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() {