archrelease: copy trunk to community-any
[arch-community.git] / capnproto / trunk / PKGBUILD
blobac1963c521d0aa03d8a1ed192ceaca82d8c164b7
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Dave Reisner <dreisner@archlinux.org>
3 # Contributor: Matthias Blaicher <matthias@blaicher.com>
4 # Contributor: Severen Redwood <severen@shrike.me>
6 pkgname=capnproto
7 pkgver=0.10.4
8 pkgrel=1
9 pkgdesc="Cap'n Proto serialization/RPC system"
10 arch=(x86_64)
11 url="https://capnproto.org/"
12 license=(MIT)
13 depends=(
14   gcc-libs
15   glibc
16   openssl
17   zlib
19 makedepends=(cmake)
20 provides=(
21   libcapnp.so
22   libcapnp-json.so
23   libcapnp-rpc.so
24   libcapnpc.so
25   libkj-async.so
26   libkj-gzip.so
27   libkj-http.so
28   libkj-test.so
29   libkj-tls.so
30   libkj.so
32 source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz)
33 sha512sums=('6179a202399f4391014827799c954e0b3ad811ab82ebd0addc01d8c7695b9c1a9c0a0c26b018cd392e3731e12b30cca58545459d1b3a140e86e34b75d7eacbc7')
34 b2sums=('3a893b766302a96df71763613fa1624f6b7229b8926099d1d9c217f4a1817db16aa24d3bec7950e480da6b027bd9b6b0b5a4083e982e7bda8fc6594794fd379a')
36 build() {
37   local cmake_options=(
38       -B build
39       -D BUILD_SHARED_LIBS=ON
40       -D CMAKE_BUILD_TYPE=None
41       -D CMAKE_INSTALL_PREFIX=/usr
42       -S $pkgname-$pkgver
43       -W no-dev
44   )
46   cmake "${cmake_options[@]}"
47   cmake --build build --verbose
50 package() {
51   DESTDIR="$pkgdir" cmake --install build
52   install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
53   install -vDm 644 $pkgname-$pkgver/{CONTRIBUTORS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
55 # vim:set ts=2 sw=2 et: