1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: speps <speps at aur dot archlinux dot org>
6 pkgname=(lilv lilv-docs)
9 pkgdesc="A C library interface to the LV2 plug-in standard"
11 url="https://drobilla.net/software/lilv.html"
13 makedepends=(doxygen libsndfile lv2 meson python python-sphinx python-sphinx-lv2-theme serd sord sratom swig)
14 source=(https://download.drobilla.net/$pkgname-$pkgver.tar.xz{,.sig})
15 sha512sums=('68963b66fd6e577280867fcd5a601fd2cf539a10fcf0b667c22165cc7e42206fd6a20d56dbe97b587fb68f798d4db3b2351b87b1243c665c3a2b1bb82cbbf9a3'
17 b2sums=('50b2044a7fb62cfcbea6dc68cd0d26503780f30a5a04e2ceafca9e02b2369965d7d27b8d08bbfa136930a3b18a3e0eb6cf4c326d3c2d46218badb4a8ec6e1e01'
19 validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3') # David Robillard <d@drobilla.net>
22 local p="$1" f d; shift
24 d="$srcdir/$p/${f#$pkgdir/}"
25 mkdir -p "$(dirname "$d")"
27 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
32 arch-meson $pkgname-$pkgver build
33 meson compile -C build
41 depends=(glibc libserd-0.so libsord-0.so libsratom-0.so lv2)
43 'libsndfile: for lv2apply'
44 'lilv-docs: for documentation'
45 'python-numpy: for Python bindings'
47 provides=(liblilv-0.so)
49 meson install -C build --destdir "$pkgdir"
52 _pick $pkgname-docs usr/share/doc
54 install -vDm 644 $pkgname-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
55 install -vDm 644 $pkgname-$pkgver/{NEWS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
56 # install bash completion to correct directory and remove /etc
57 install -vDm 644 "$pkgdir/etc/bash_completion.d/$pkgname" -t "$pkgdir/usr/share/bash-completion/completions/"
62 pkgdesc+=" - documentation"
64 mv -v $pkgname/* "$pkgdir"
65 mv -v "$pkgdir/usr/share/doc/$pkgbase"{-0,}
66 find "$pkgdir" -type f -iname "*.buildinfo" -delete