summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 585247c4d64f065f5db470036c3ed2bd0ca105f7 (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
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

_name=BAngr
_pkgname="${_name,,}.lv2"
_plugin_uri="https://www.jahnichen.de/plugins/lv2/$_name"
pkgname=$_pkgname-git
pkgdesc='A multi-dimensional dynamically distorted staggered multi-bandpass LV2 plugin (git version)'
pkgver=1.6.2.r8.g4c7f61e
pkgrel=1
arch=(x86_64)
url="https://github.com/sjaehn/$_name"
license=(GPL3)
groups=(lv2-plugins pro-audio)
depends=(cairo gcc-libs glibc libx11)
makedepends=(cpio git lv2)
checkdepends=(lv2lint)
provides=(${_name,,} "${_name,,}=${pkgver//.r*/}" $_pkgname "${_pkgname}=${pkgver//.r*/}")
conflicts=(${_name,,} $_pkgname)
source=("$_pkgname::git+https://github.com/sjaehn/$_name"
        'bwidgets::git+https://github.com/sjaehn/BWidgets.git'
        'pugl::git+https://github.com/lv2/pugl.git')
md5sums=('SKIP'
         'SKIP'
         'SKIP')


pkgver() {
  cd $_pkgname
  ( set -o pipefail
    git describe --long --tags 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 $_pkgname
  git submodule init
  git config submodule.src/BWidgets.url "$srcdir/bwidgets"
  git -c protocol.file.allow=always submodule update --init

  cd src/BWidgets
  git submodule init
  git config submodule.pugl.url "$srcdir/pugl"
  git -c protocol.file.allow=always submodule update --init
}

build() {
  cd $_pkgname
  make
}

check() {
  cd $_pkgname
  lv2lint -Mpack -I "$_name.lv2/" "${_plugin_uri}"
}

package() {
  cd $_pkgname
  make PREFIX="/usr" DESTDIR="$pkgdir/" install
  install -vDm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
  # Remove misplaced license file
  find "$pkgdir"/usr/lib/lv2/$_name.lv2 -type f -iname "*LICENSE*" -delete
}