summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5575d790e0b5b1fe13fda98568cb80ff27b8ebab (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
# Maintainer: Alexandre BIQUE <bique.alexandre@gmail.com>
pkgname=clap-plugins
pkgver=1.0.1
pkgrel=1
pkgdesc="CLAP example plugins"
arch=(x86_64)
url="https://github.com/free-audio/clap-plugins"
license=('MIT')
groups=()
depends=(qt6-base qt6-declarative)
makedepends=(cmake ninja git catch2)
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(git+https://github.com/free-audio/clap-plugins#tag=$pkgver
  git+https://github.com/free-audio/clap#branch=main
  git+https://github.com/free-audio/clap-helpers#branch=main
  git+https://github.com/niXman/yas#branch=master)
noextract=()
sha256sums=(SKIP
  SKIP
  SKIP
  SKIP)

build() {
  cd "$pkgname"

  rm -rf clap clap-helpers vcpkg yas

  ln -s "$srcdir/clap"
  ln -s "$srcdir/clap-helpers"
  ln -s "$srcdir/yas"

  rm -rf build
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCLAP_PLUGINS_REMOTE_GUI=TRUE -DCLAP_PLUGINS_EMBED_QML=TRUE -GNinja ..
  ninja
}

package() {
  cd "$pkgname/build"

  DESTDIR="$pkgdir/" ninja install
}