lsp-plugins: split subpkgs, make it a metapkg

This commit is contained in:
dkwo 2024-05-21 12:30:32 -04:00 committed by classabbyamp
parent d38d1e22e6
commit 06780f36cb
7 changed files with 60 additions and 6 deletions

1
srcpkgs/lsp-plugins-clap Symbolic link
View File

@ -0,0 +1 @@
lsp-plugins

1
srcpkgs/lsp-plugins-ladspa Symbolic link
View File

@ -0,0 +1 @@
lsp-plugins

1
srcpkgs/lsp-plugins-libs Symbolic link
View File

@ -0,0 +1 @@
lsp-plugins

1
srcpkgs/lsp-plugins-lv2 Symbolic link
View File

@ -0,0 +1 @@
lsp-plugins

1
srcpkgs/lsp-plugins-vst2 Symbolic link
View File

@ -0,0 +1 @@
lsp-plugins

1
srcpkgs/lsp-plugins-xdg Symbolic link
View File

@ -0,0 +1 @@
lsp-plugins

View File

@ -1,13 +1,15 @@
# Template file for 'lsp-plugins'
pkgname=lsp-plugins
version=1.2.14
revision=1
revision=2
build_style=gnu-makefile
make_use_env=yes
make_build_args="VERBOSE=0"
hostmakedepends="pkg-config php lv2"
makedepends="lv2 libglvnd-devel jack-devel libsndfile-devel
libXrandr-devel cairo-devel freetype-devel"
depends="lsp-plugins-libs lsp-plugins-xdg
lsp-plugins-clap lsp-plugins-ladspa lsp-plugins-lv2 lsp-plugins-vst2"
short_desc="Collection of open-source audio plugins for studios"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
@ -21,6 +23,56 @@ do_configure() {
make LD="$CXX" PREFIX=/usr config
}
lsp-plugins-libs_package() {
short_desc+=" - main libraries"
pkg_install() {
vmove usr/lib/liblsp-r3d-glx-lib*.so
vmove usr/lib/lsp-plugins/liblsp-plugins-jack*.so
}
}
lsp-plugins-xdg_package() {
short_desc+=" - XDG integration"
pkg_install() {
vmove usr/share/applications
vmove usr/share/desktop-directories
vmove usr/share/icons
vmove etc/xdg/menus/applications-merged
}
}
lsp-plugins-clap_package() {
short_desc+=" - clap integrations"
depends="${sourcepkg}-libs>=${version}_${revision}"
pkg_install() {
vmove usr/lib/clap
}
}
lsp-plugins-ladspa_package() {
short_desc+=" - ladspa integration"
depends="${sourcepkg}-libs>=${version}_${revision}"
pkg_install() {
vmove usr/lib/ladspa
}
}
lsp-plugins-lv2_package() {
short_desc+=" - lv2 plugins"
depends="lv2>=0.6.0 ${sourcepkg}-libs>=${version}_${revision}"
pkg_install() {
vmove usr/lib/lv2
}
}
lsp-plugins-vst2_package() {
short_desc+=" - vst2 plugins"
depends="${sourcepkg}-libs>=${version}_${revision}"
pkg_install() {
vmove usr/lib/vst
}
}
lsp-plugins-doc_package() {
short_desc+=" - documentation"
pkg_install() {
@ -33,10 +85,6 @@ lsp-plugins-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig
for f in $DESTDIR/usr/lib/*; do
if echo ${f##*/} | grep -Eq '^[^.]*\.(a|so)$'; then
vmove ${f#$DESTDIR/}
fi
done
vmove usr/lib/liblsp-r3d-glx-lib*.a
}
}