community/x42-plugins to 20211016-2

This commit is contained in:
David Beauchamp 2021-11-18 13:36:50 -05:00
parent 45ef01dac1
commit cd398567f8

View file

@ -6,7 +6,7 @@
pkgname=x42-plugins
pkgver=20211016
pkgrel=1
pkgrel=2
pkgdesc="Collection of LV2 plugins"
arch=('x86_64')
url="https://github.com/x42/x42-plugins"
@ -90,7 +90,7 @@ prepare() {
case "$name" in
meter)
for type in {0..19}; do
gendesk -n \
gendesk -n -f \
--pkgname "com.x42_plugins.x42_meter_${type}" \
--name "x42-meter ${meter_types[$type]}" \
--pkgdesc "${meter_types[$type]}" \
@ -101,7 +101,7 @@ prepare() {
;;
tuna)
for type in {0,1}; do
gendesk -n \
gendesk -n -f \
--pkgname "com.x42_plugins.x42_${name}_${type}" \
--name "x42-${name} ${tuna_types[$type]}" \
--pkgdesc "${tuna_types[$type]}" \
@ -111,7 +111,7 @@ prepare() {
done
;;
*)
gendesk -n \
gendesk -n -f \
--pkgname "com.x42_plugins.x42_${name}" \
--name "x42-${name}" \
--pkgdesc "${comments[$name]}" \
@ -121,8 +121,10 @@ prepare() {
;;
esac
done
sed -e '/Categories/d' -i *.desktop
# moving images to correct location so installation is not such a hassle later on
mv -v fat1.lv2/img/x42{_,-}fat1.png
mv -v fil4.lv2/img/x42{_,-}fil4.png
mv -v mixtri.lv2/img/x42{_,-}mixtri.png
mv -v meters.lv2/img/x42-meter{s,}.png
mv -v matrixmixer.lv2/img/x42-matrixmixer{,8x8}.png
@ -260,10 +262,8 @@ package() {
install -vDm 644 ./*.desktop -t "${pkgdir}/usr/share/applications/"
# icons
for name in "${_names[@]}"; do
if [[ "$name" != 'fil4' ]]; then
install -vDm 644 "${_dirs[$name]}/img/x42-${name}.png" \
-t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
fi
install -vDm 644 "${_dirs[$name]}/img/x42-${name}.png" \
-t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
done
install -vDm 644 "../${pkgname}.png" \
-t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"