archrelease: copy trunk to community-any
[ArchLinux/community.git] / lilv / trunk / PKGBUILD
blob84ec76f25c76a9bcfbacb471bd4744c47a146ba9
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ray Rashif <schiv@archlinux.org>
3 # Contributor: speps <speps at aur dot archlinux dot org>
5 pkgbase=lilv
6 pkgname=(lilv lilv-docs)
7 pkgver=0.24.20
8 pkgrel=2
9 pkgdesc="A C library interface to the LV2 plug-in standard"
10 arch=(x86_64)
11 url="https://drobilla.net/software/lilv.html"
12 license=(ISC)
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'
16             'SKIP')
17 b2sums=('50b2044a7fb62cfcbea6dc68cd0d26503780f30a5a04e2ceafca9e02b2369965d7d27b8d08bbfa136930a3b18a3e0eb6cf4c326d3c2d46218badb4a8ec6e1e01'
18         'SKIP')
19 validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3') # David Robillard <d@drobilla.net>
21 _pick() {
22   local p="$1" f d; shift
23   for f; do
24     d="$srcdir/$p/${f#$pkgdir/}"
25     mkdir -p "$(dirname "$d")"
26     mv "$f" "$d"
27     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
28   done
31 build() {
32   arch-meson $pkgname-$pkgver build
33   meson compile -C build
36 check() {
37   meson test -C build
40 package_lilv() {
41   depends=(glibc libserd-0.so libsord-0.so libsratom-0.so lv2)
42   optdepends=(
43     'libsndfile: for lv2apply'
44     'lilv-docs: for documentation'
45     'python-numpy: for Python bindings'
46   )
47   provides=(liblilv-0.so)
49   meson install -C build --destdir "$pkgdir"
50   (
51     cd "$pkgdir"
52     _pick $pkgname-docs usr/share/doc
53   )
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/"
58   rm -frv "$pkgdir/etc"
61 package_lilv-docs() {
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