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=(sord sord-docs)
9 pkgdesc="A lightweight C library for storing RDF data in memory"
11 url="https://drobilla.net/software/sord.html"
13 makedepends=(doxygen glibc meson pcre python-sphinx serd)
14 source=(https://download.drobilla.net/$pkgname-$pkgver.tar.xz{,.sig})
15 sha512sums=('f6f254518d5dccece7975529b1fcfd552fd9c37e49dc7e9f8a46756b85e476dac064a39af42bfb3078e999e75d1aa75dcc30ec91e08753defa9363adafdfd3bd'
17 b2sums=('399f4bf5d1b8ae557fa7e2d2e92e74ed646d0554235f4527a4b9ad53aa6beb0e90e2d80c9e65ab3c872b5c8d45a7948b7746284bb1fd2352320a0aa33e97e305'
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 pcre)
42 provides=(libsord-0.so)
43 optdepends=('sord-docs: for developer documentation')
45 meson install -C build --destdir "$pkgdir"
48 _pick $pkgname-docs usr/share/doc
50 install -vDm 644 $pkgname-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
51 install -vDm 644 $pkgname-$pkgver/{AUTHORS,NEWS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
55 pkgdesc+=" - documentation"
57 mv -v $pkgname/* "$pkgdir"
58 mv -v "$pkgdir/usr/share/doc/"sord{-0,}