mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
lv2core: add bit from arch to simulate running lv2config during pkg build
This commit is contained in:
parent
148f02d804
commit
4f059a903f
1 changed files with 11 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'lv2core'
|
# Template file for 'lv2core'
|
||||||
pkgname=lv2core
|
pkgname=lv2core
|
||||||
version=4.0
|
version=4.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=waf
|
build_style=waf
|
||||||
homepage="http://lv2plug.in"
|
homepage="http://lv2plug.in"
|
||||||
distfiles="http://lv2plug.in/spec/lv2core-4.0.tar.bz2"
|
distfiles="http://lv2plug.in/spec/lv2core-4.0.tar.bz2"
|
||||||
|
@ -18,7 +18,14 @@ Add_dependency build python
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
# Copy header to directory where other programs need to find it
|
# This bit is from Arch
|
||||||
vmkdir usr/include/lv2/lv2plug.in/ns/lv2core
|
# do the work of lv2config to own symlinks;
|
||||||
vcopy lv2.h usr/include/lv2/lv2plug.in/ns/lv2core
|
# - 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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue