PKGBUILDs/community/x42-plugins/PKGBUILD

70 lines
2.4 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-02-22 13:27:28 +00:00
pkgver=20190206
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')
2018-07-27 13:48:13 +00:00
depends=('ftgl' '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-02-22 13:27:28 +00:00
sha512sums=('a70b3646bd5c93d95055512c6134e9900201359ef6f6b57ed9ed22ddb735f518e1a5d011b5d4b6e3d347c014d9142984cf1de0fdb4b469f280f44790cfcb069b')
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"
["meter"]="Collection of audio-level meters"
["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"
["tuna"]="A musical instrument tuner with strobe characteristics"
)
2019-01-07 01:27:08 +00:00
declare -A generic=(
["dpl1"]="Peak Limiter"
["fat1"]="Auto Tune"
["fil4"]="Parametric Equalizer"
["meter"]="Audio Meter Collection"
["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"
["tuna"]="Music Instrument Tuner"
)
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
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: