diff --git a/srcpkgs/lv2core/template b/srcpkgs/lv2core/template index 0c3f270cb17..2f0b63017b1 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" }