From 4f059a903f0b3cd7da97e9eba060fd26fffa05c0 Mon Sep 17 00:00:00 2001 From: davehome Date: Fri, 28 Oct 2011 10:51:39 +0000 Subject: [PATCH] lv2core: add bit from arch to simulate running lv2config during pkg build --- srcpkgs/lv2core/template | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/srcpkgs/lv2core/template b/srcpkgs/lv2core/template index 0c3f270cb1..2f0b63017b 100644 --- a/srcpkgs/lv2core/template +++ b/srcpkgs/lv2core/template @@ -1,7 +1,7 @@ # Template file for 'lv2core' pkgname=lv2core version=4.0 -revision=1 +revision=2 build_style=waf homepage="http://lv2plug.in" distfiles="http://lv2plug.in/spec/lv2core-4.0.tar.bz2" @@ -18,7 +18,14 @@ Add_dependency build python post_install() { - # Copy header to directory where other programs need to find it - vmkdir usr/include/lv2/lv2plug.in/ns/lv2core - vcopy lv2.h usr/include/lv2/lv2plug.in/ns/lv2core + # This bit is from Arch + # do the work of lv2config to own symlinks; + # - generate lv2 headers + # - see FS#23514 + local _ns=$(grep '^|\1|') + local _name=${_ns/*\/} + local _path="usr/include/lv2/${_ns%/*}" + vmkdir "$_path" + cd "${DESTDIR}/usr/include/lv2/${_ns%/*}" && \ + ln -s "../../../../lib/lv2/$_name.lv2" "$_name" }