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=(serd serd-docs)
9 pkgdesc="Lightweight C library for RDF syntax supporting reading/ writing Turtle and NTriples"
11 url="https://drobilla.net/software/serd.html"
13 makedepends=(doxygen meson python-sphinx)
14 source=(https://download.drobilla.net/$pkgname-$pkgver.tar.xz{,.sig})
15 sha512sums=('1bc2e310027d52ea675aa261b52e89c4c1ccb622fa9fef11c874876de7821fe94672918ff58b9edcc7995daa70fc88b7ceb88fae61dd40f601285de1995b39ff'
17 b2sums=('0021125505bf23565a1cca24dc83eff3496fc11fe6b38dc07b68d800c7bd6a854923bc7c529161b659bd80cb7aa8c3b45e767f0841b57d4803d820e0016e2ed2'
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
42 optdepends=('serd-docs: for developer documentation')
43 provides=(libserd-0.so)
45 meson install -C build --destdir "$pkgdir"
48 _pick $pkgname-docs usr/share/doc
51 install -vDm 644 $pkgname-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
52 install -vDm 644 $pkgname-$pkgver/{AUTHORS,NEWS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
56 pkgdesc+=" - documentation"
58 mv -v $pkgname/* "$pkgdir"
59 mv -v "$pkgdir/usr/share/doc/"serd{-0,}