summaryrefslogtreecommitdiff
path: root/extra/lilv/PKGBUILD
blob: 9b58dff47b363fb1816ac51a1b0aaa240fd21666 (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
# $Id: PKGBUILD 72422 2012-06-14 07:51:14Z speps $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: speps <speps at aur dot archlinux dot org>

pkgname=lilv
pkgver=0.16.0
pkgrel=1
pkgdesc="A library to make the use of LV2 plugins as simple as possible for applications"
arch=('i686' 'x86_64' 'mips64el')
url="http://drobilla.net/software/lilv/"
license=('custom:ISC')
depends=('python2' 'sratom>=0.4.2' 'jack')
makedepends=('swig')
optdepends=('bash-completion: auto-complete words')
source=("http://download.drobilla.net/$pkgname-$pkgver.tar.bz2"
        'lilvmm.patch')
md5sums=('12eb71f2b5b8a68e15c1c816896bcb9f'
         'd34207f8ca3586650ad7c50284ffb3e0')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # fix UI API error
  # backport of http://dev.drobilla.net/changeset/5092
  patch -Np2 -i "$srcdir/lilvmm.patch"

  # pick up python2 even when python3 exists
  # (the build system has flaky support for python3)
  export PYTHON="/usr/bin/python2"

  # remove ldconfig --speps
  sed -i "/ldconfig/d" wscript

  python2 waf configure --prefix=/usr \
                        --configdir=/etc \
                        --dyn-manifest \
                        --bindings

  python2 waf build $MAKEFLAGS
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  python2 waf install --destdir="$pkgdir"

  # license
  install -Dm644 COPYING \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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