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

_pkgname=caps-lv2
pkgname=$_pkgname-git
pkgver=0.9.26.r178.5d52a0c
pkgrel=1
pkgdesc='The LADSPA C* Audio Plugin Suite (LV2 port)'
arch=(i686 x86_64)
url='http://quitte.de/dsp/caps.html'
license=(GPL3)
depends=(gcc-libs glibc)
makedepends=(lv2 python)
optdepends=('lv2-host: for loading the LV2 format plugins')
groups=(lv2-plugins)
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/moddevices/caps-lv2.git")
md5sums=('SKIP')

pkgver() {
  cd $_pkgname

  cat > version.c <<__EOF__
#include "version.h"
#include <stdio.h>
void main() {
  printf("%d.%d.%d\n", CAPS_version[0], CAPS_version[1], CAPS_version[2]);
}
__EOF__
  gcc -o version version.c
  echo $(./version).r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

prepare() {
  cd $_pkgname
  # Replace deprecated 'pow10f' function
  sed -i -e 's/pow10f/exp10f/g' dsp/v4f_IIR2.h
}

build() {
  cd $_pkgname
  python configure.py
  make PREFIX=/usr
}

package() {
  cd $_pkgname
  unset LV2_PATH
  make PREFIX=/usr DESTDIR="$pkgdir" install
  #rm -rf "$pkgdir"/usr/lib/lv2/mod-caps-*.lv2/modgui*
}

# vim:set ts=2 sw=2 et: