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