community/x42-plugins to 20190105-2

This commit is contained in:
Kevin Mihelich 2019-01-07 01:27:08 +00:00
parent a26ee38bb3
commit 9c3799fb2d

View file

@ -6,7 +6,7 @@
pkgname=x42-plugins pkgname=x42-plugins
pkgver=20190105 pkgver=20190105
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"
@ -18,7 +18,8 @@ source=("http://gareus.org/misc/${pkgname}/${pkgname}-${pkgver}.tar.xz")
sha512sums=('ad7b42c14427683531aa6db40c8fca7c15d9048e3afd30749d57dba929a43aa57363106f7770fda16ef97dc2e92edeaa8d150f55e9589e64c64b6c388fd44afe') sha512sums=('ad7b42c14427683531aa6db40c8fca7c15d9048e3afd30749d57dba929a43aa57363106f7770fda16ef97dc2e92edeaa8d150f55e9589e64c64b6c388fd44afe')
prepare() { prepare() {
declare -A descriptions=( cd "${pkgname}-${pkgver}"
declare -A comments=(
["dpl1"]="Look-ahead digital peak limiter intended but not limited to the final step of mastering or mixing" ["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" ["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" ["fil4"]="4 band parametric equalizer with additional low+high shelf filters, Low and High-pass"
@ -28,21 +29,31 @@ prepare() {
["stepseq"]="Simple step sequencer for moddevices.com" ["stepseq"]="Simple step sequencer for moddevices.com"
["tuna"]="A musical instrument tuner with strobe characteristics" ["tuna"]="A musical instrument tuner with strobe characteristics"
) )
cd "${pkgname}-${pkgver}" declare -A generic=(
# replace ttf-freefont with ttf-liberation ["dpl1"]="Peak Limiter"
export FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf ["fat1"]="Auto Tune"
["fil4"]="Parametric Equalizer"
["meter"]="Audio Meter Collection"
["mixtri"]="Mixer'n'Trigger"
["scope"]="Oscilloscope"
["stepseq"]="Step Sequencer"
["tuna"]="Music Instrument Tuner"
)
# XDG desktop files # XDG desktop files
for name in "${!descriptions[@]}"; do for name in "${!comments[@]}"; do
gendesk -n \ gendesk -n \
--pkgname x42-${name} \ --pkgname "x42-${name}" \
--pkgdesc "${descriptions[$name]}" \ --name "x42-${name}" \
--name x42-${name} \ --pkgdesc "${comments[$name]}" \
--genericname "${generic[$name]}" \
--categories "AudioVideo;Audio" --categories "AudioVideo;Audio"
done done
} }
build() { build() {
cd "${pkgname}-${pkgver}" cd "${pkgname}-${pkgver}"
# replace ttf-freefont with ttf-liberation
export FONTFILE=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf
export OPTIMIZATIONS="-ffast-math -fomit-frame-pointer -O3 -fno-finite-math-only" export OPTIMIZATIONS="-ffast-math -fomit-frame-pointer -O3 -fno-finite-math-only"
make make
} }