-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPKGBUILD
More file actions
47 lines (42 loc) · 1.61 KB
/
Copy pathPKGBUILD
File metadata and controls
47 lines (42 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_name=MelMatchEQ.lv2
pkgname=${_name,,}
pkgver=0.1
pkgrel=1
pkgdesc='A profiling EQ using a 26 step Mel Frequency Band LV2 plugin'
arch=(aarch64 x86_64)
url="https://github.com/brummer10/$_name"
license=(GPL2)
groups=(lv2-plugins pro-audio)
depends=(cairo glibc gcc-libs libx11)
makedepends=(lv2)
checkdepends=(lv2lint)
optdepends=('lv2-host: for loading the LV2 format plugin')
source=("$_name-$pkgver.tar.gz::https://github.com/brummer10/$_name/archive/refs/tags/v$pkgver.tar.gz"
'fix-shortcut.patch::https://github.com/brummer10/MelMatchEQ.lv2/pull/2.patch'
'fix-manifest.patch::https://github.com/brummer10/MelMatchEQ.lv2/pull/4.patch')
sha256sums=('5cd103056675f723d9f9120f2c8a43b312586caff46882dfe909602a2b10ff47'
'dd0cdac22a24c909d09358e9694a060c58ee3d3884618a6b391ae1af2da49d3f'
'2d27e152e3d829544e667bcd8f64ce4a46fafcf7312ac29fee03866537ca87bd')
_plugin_uri='https://github.com/brummer10/MelMatchEQ#_melmatcheq_'
prepare() {
cd $_name-$pkgver
patch -p1 -N -r - -i "$srcdir"/fix-shortcut.patch
patch -p1 -N -r - -i "$srcdir"/fix-manifest.patch
}
build() {
cd $_name-$pkgver
export CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
make
}
check() {
cd $_name-$pkgver
# Compiled-in UI image resources are externally visible symbols
lv2lint -s '_binary*' -M pack -I gx_${_name,,} "$_plugin_uri"
}
package() {
cd $_name-$pkgver
make DESTDIR="$pkgdir" install
install -vDm 644 README.md ${_name/.lv2/}.png -t "$pkgdir"/usr/share/doc/$pkgname
}