summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7686c0ea6c67d0c86450731e072ba9be3d0f8a53 (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
# Maintainer:  <castix at autistici dot org>
pkgname=rsaturation-lv2-git
pkgver='2.0'
pkgrel=1
epoch=
pkgdesc="A simple saturation plugin"
arch=('i686' 'x86_64')
url="https://github.com/hannesbraun/rsaturation"
license=('custom')
groups=('lv2-plugins')
depends=('glibc')
makedepends=('git' 'cmake')
provides=("${pkgname%-lv2-git}")
conflicts=("${pkgname%-lv2-git}")
source=('rsaturation-lv2::git+https://github.com/hannesbraun/rsaturation')
md5sums=('SKIP')


build() {
  cd "$srcdir"
  mkdir -p build
  cd build
  cmake "../${pkgname%-git}"
}

package() {
  cd "$srcdir/build"

  make DESTDIR="$pkgdir/" install
  
  # there should be an evironment variable to avoid doing this mv
  # doing this becuse of namcap complaints about local being non-standard
  mv "${pkgdir}/usr/local/lib" "${pkgdir}/usr/lib"
  rmdir "${pkgdir}/usr/local"
  
  mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
  cp "../${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

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