upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / serd / trunk / PKGBUILD
blob27f0b55c73af25325c9077e65d11b7b6622a1a6f
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=serd
6 pkgname=(serd serd-docs)
7 pkgver=0.30.16
8 pkgrel=1
9 pkgdesc="Lightweight C library for RDF syntax supporting reading/ writing Turtle and NTriples"
10 arch=(x86_64)
11 url="https://drobilla.net/software/serd.html"
12 license=(custom:ISC)
13 makedepends=(doxygen meson python-sphinx)
14 source=(https://download.drobilla.net/$pkgname-$pkgver.tar.xz{,.sig})
15 sha512sums=('1bc2e310027d52ea675aa261b52e89c4c1ccb622fa9fef11c874876de7821fe94672918ff58b9edcc7995daa70fc88b7ceb88fae61dd40f601285de1995b39ff'
16             'SKIP')
17 b2sums=('0021125505bf23565a1cca24dc83eff3496fc11fe6b38dc07b68d800c7bd6a854923bc7c529161b659bd80cb7aa8c3b45e767f0841b57d4803d820e0016e2ed2'
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_serd() {
41   depends=(glibc)
42   optdepends=('serd-docs: for developer documentation')
43   provides=(libserd-0.so)
45   meson install -C build --destdir "$pkgdir"
46   (
47     cd "$pkgdir"
48     _pick $pkgname-docs usr/share/doc
49   )
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/"
55 package_serd-docs() {
56   pkgdesc+=" - documentation"
58   mv -v $pkgname/* "$pkgdir"
59   mv -v "$pkgdir/usr/share/doc/"serd{-0,}