PKGBUILDs/community/x42-plugins/PKGBUILD

113 lines
3.7 KiB
Bash
Raw Normal View History

2018-02-07 03:29:04 +00:00
# Maintainer: David Runge <dave@sleepmap.de>
# Contributor: Lieven Moors <lievenmoors@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - export OPTIMIZATIONS to override Makefiles without x86isms
pkgname=x42-plugins
2019-04-14 23:29:54 +00:00
pkgver=20190413
2019-02-22 13:27:28 +00:00
pkgrel=1
2018-02-07 03:29:04 +00:00
pkgdesc="Collection of LV2 plugins"
arch=('x86_64')
url="https://github.com/x42/x42-plugins"
license=('GPL')
2019-04-14 23:29:54 +00:00
depends=('ftgl' 'glib2' 'jack' 'liblo' 'libltc' 'pango' 'zita-convolver')
2019-01-06 16:46:59 +00:00
makedepends=('gendesk' 'gtk2' 'help2man' 'lv2' 'ttf-dejavu')
2018-06-06 12:51:57 +00:00
groups=('lv2-plugins' 'pro-audio')
2018-08-03 19:15:51 +00:00
source=("http://gareus.org/misc/${pkgname}/${pkgname}-${pkgver}.tar.xz")
2019-04-14 23:29:54 +00:00
sha512sums=('c41eb90ca5d5a746d55f7c1327ecfe58131318be5496c07638b6a891c8060e23fd666d2c3c5227a2a67f9eef8e1713038c65d9a38c5479d92426b930485e979e')
2018-07-24 00:25:27 +00:00
prepare() {
2019-01-07 01:27:08 +00:00
cd "${pkgname}-${pkgver}"
declare -A comments=(
2018-09-01 22:57:53 +00:00
["dpl1"]="Look-ahead digital peak limiter intended but not limited to the final step of mastering or mixing"
["fat1"]="Auto-tuner based on Fons Adriaensen's zita-at1"
["fil4"]="4 band parametric equalizer with additional low+high shelf filters, Low and High-pass"
["mixtri"]="Matrix mixer and trigger processor"
["scope"]="Simple audio oscilloscope with variable time scale, triggering, cursors and numeric readout"
2019-02-22 13:27:28 +00:00
["spectr"]="Spectrum Analyzer"
2018-09-01 22:57:53 +00:00
["stepseq"]="Simple step sequencer for moddevices.com"
)
2019-01-07 01:27:08 +00:00
declare -A generic=(
["dpl1"]="Peak Limiter"
["fat1"]="Auto Tune"
["fil4"]="Parametric Equalizer"
["mixtri"]="Mixer'n'Trigger"
["scope"]="Oscilloscope"
2019-02-22 13:27:28 +00:00
["spectr"]="Spectrum Analyzer"
2019-01-07 01:27:08 +00:00
["stepseq"]="Step Sequencer"
)
2019-04-14 23:29:54 +00:00
declare -A meter_types=(
[0]='EBU R128 Meter'
[1]='K20/RMS Meter (Stereo)'
[2]='K14/RMS Meter (Stereo)'
[3]='K12/RMS Meter (Stereo)'
[4]='BBC Meter (Stereo)'
[5]='BBC M-6'
[6]='DIN Meter (Stereo)'
[7]='EBU Meter (Stereo)'
[8]='Nordic Meter (Stereo)'
[9]='VU Meter (Stereo)'
[10]='True-Peak and RMS Meter (Stereo)'
[11]='DR-14 - Crest Factor Loudness Range Meter'
[12]='Stereo Phase-Correlation Meter'
[13]='Goniometer'
[14]='Phase/Frequency Wheel'
[15]='1/3 Octave Spectrum Analyzer'
[16]='Stereo/Frequency Scope'
[17]='Signal Distribution Histogram'
[18]='Bit Meter'
[19]='Surround Level 8'
)
declare -A tuna_types=(
[0]='Instrument Tuner'
[1]='Instrument Tuner (Spectrum)'
)
2018-09-01 22:57:53 +00:00
# XDG desktop files
2019-01-07 01:27:08 +00:00
for name in "${!comments[@]}"; do
2018-09-01 22:57:53 +00:00
gendesk -n \
2019-01-07 01:27:08 +00:00
--pkgname "x42-${name}" \
--name "x42-${name}" \
--pkgdesc "${comments[$name]}" \
--genericname "${generic[$name]}" \
2018-09-01 22:57:53 +00:00
--categories "AudioVideo;Audio"
done
2019-04-14 23:29:54 +00:00
for type in {0..19}; do
gendesk -n \
--pkgname "x42-meter-${type}" \
--name "x42-meter ${meter_types[$type]}" \
--pkgdesc "${meter_types[$type]}" \
--exec "x42-meter $type" \
--icon "x42-meter" \
--genericname "Audio Meter" \
--categories "AudioVideo;Audio"
done
for type in {0,1}; do
gendesk -n \
--pkgname "x42-tuna-${type}" \
--name "x42-tuna ${tuna_types[$type]}" \
--pkgdesc "${tuna_types[$type]}" \
--exec "x42-tuna $type" \
--icon "x42-tuna" \
--genericname "Music Instrument Tuner" \
--categories "AudioVideo;Audio"
done
2018-07-24 00:25:27 +00:00
}
2018-02-07 03:29:04 +00:00
build() {
cd "${pkgname}-${pkgver}"
2019-01-07 01:27:08 +00:00
# replace ttf-freefont with ttf-liberation
export FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf
2018-02-07 03:29:04 +00:00
export OPTIMIZATIONS="-ffast-math -fomit-frame-pointer -O3 -fno-finite-math-only"
2018-07-27 13:48:13 +00:00
make
2018-02-07 03:29:04 +00:00
}
package() {
cd "${pkgname}-${pkgver}"
make install DESTDIR="$pkgdir/" PREFIX=/usr
2018-09-01 22:57:53 +00:00
install -vDm 644 *.desktop -t "${pkgdir}/usr/share/applications/"
2018-02-07 03:29:04 +00:00
}
# vim:set ts=2 sw=2 et: