summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6dfbe287877191729ef058b40534d30668c2b867 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: JP Cimalando <jp-dev inbox.ru>
pkgname=hybridreverb2-git
_pkgname=HybridReverb2
pkgver=r92.6beac8e
_rirver=1.0.0
pkgrel=3
epoch=
pkgdesc="Hybrid impulse convolution reverb, available as LV2 and VST"
arch=('i686' 'x86_64')
url="https://github.com/jpcima/HybridReverb2"
license=('GPL')
groups=()
depends=('fftw' 'jack' 'freetype2' 'libxext' 'hicolor-icon-theme')
makedepends=('git' 'cmake' 'unzip' 'libxrandr' 'libxinerama' 'libxcursor')
checkdepends=()
optdepends=()
provides=('hybridreverb2')
conflicts=('hybridreverb2')
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/jpcima/$_pkgname.git"
        "git+https://github.com/jpcima/JUCE.git"
        "RIR-$_rirver.zip::https://github.com/jpcima/HybridReverb2-impulse-response-database/archive/v$_rirver.zip"
        'juce-gcc9.patch')
noextract=("RIR-$_rirver.zip")
sha256sums=('SKIP'
            'SKIP'
            '8ada57a590e6b04c272312874c67656ccf7e3de71b2cc7dbaadf53880fb77fd7'
            '52b9e65cd0f2bf55b9f32b66bcec292d8d537d157c26e6cf8fb5b1d9c5b39640')
validpgpkeys=()

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$_pkgname"
  git submodule init
  git config submodule.Thirdparty/JUCE.url "$srcdir"/JUCE
  git submodule update
  patch -Np1 -i "$srcdir"/juce-gcc9.patch -d Thirdparty/JUCE
}

build() {
  mkdir -p "$_pkgname"/build
  cd "$_pkgname"/build
  cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DHybridReverb2_UseLocalDatabase=ON \
    ..
  make
}

package() {
  cd "$_pkgname/build"
  make DESTDIR="$pkgdir/" install

  unzip -d "$pkgdir"/usr/share/"$_pkgname" "$srcdir/RIR-$_rirver.zip"
  cd "$pkgdir"/usr/share/"$_pkgname"
  mv -f "HybridReverb2-impulse-response-database-$_rirver"/* .
  rmdir "HybridReverb2-impulse-response-database-$_rirver"
}