summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b883388b4c2983966f7268da4cf22ddd0789f80 (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=delta-limiter-lv2-git
pkgver='2.2'
pkgrel=1
epoch=
pkgdesc=""
arch=('i686' 'x86_64')
url="https://github.com/hannesbraun/delta-limiter"
license=('custom')
groups=('lv2-plugins')
depends=('glibc')
makedepends=('git' 'cmake')
provides=("${pkgname%-lv2--git}")
conflicts=("${pkgname%-lv2-git}")
source=('delta-limiter-lv2::git+https://github.com/hannesbraun/delta-limiter')
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: