lv2core: add bit from arch to simulate running lv2config during pkg build

This commit is contained in:
davehome 2011-10-28 10:51:39 +00:00
parent 148f02d804
commit 4f059a903f

View file

@ -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 '^<http' manifest.ttl | sed 's|<http://\(.*\)>|\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"
}