summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6048bd22291bfcaf1bbb110a13c75c762d994d6 (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: Milkii Brewster <milkii on Freenode IRC>
maintaner="Milkii Brewster <milkii on Freenode IRC>"
pkgname=zplugins.lv2-git
pkgdesc="Zrythm plugins for audio, MIDI and CV, including ZLFO, ZSaw, ZVerb and ZChordz"
pkgver=r36.444ae2d
pkgrel=1
epoch=
arch=(x86_64)
url="https://github.com/zrythm/ZPlugins"
license=(AGPL3+)
groups=(lv2-plugins)
depends=("lv2" "librsvg" "cairo" "librsvg")
makedepends=(lv2lint)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(debug !strip)
install=
changelog=
source=(zplugins::git+https://git.zrythm.org/git/zplugins)
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "zplugins"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

prepare() {
  cd "zplugins"
  cd ext/Soundpipe && CC=gcc make && cd ../..
  meson build --prefix /usr
}

build() {
  cd "zplugins"
	# ./configure --prefix=/usr
  ninja -C build
}

package() {
  cd "zplugins"
  DESTDIR="$pkgdir/" ninja -C build install
}