archrelease: copy trunk to community-any
[ArchLinux/community.git] / bitsery / repos / community-any / PKGBUILD
blob15eb93e7de55b05d6c661b9b175626c0a6f504da
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=bitsery
4 pkgver=5.2.3
5 pkgrel=1
6 pkgdesc="Header only C++ binary serialization library"
7 arch=(any)
8 url="https://github.com/fraillt/bitsery"
9 license=(MIT)
10 makedepends=(cmake gtest)
11 source=($pkgname-$pkgver.tar.gz::https://github.com/fraillt/$pkgname/archive/refs/tags/v$pkgver.tar.gz)
12 sha512sums=('6edaf4d5f22d640df67813f7525c2e076a76911079e25eeb93f4302a835b26d986379d1aad6bdb98f1781af3a5d638ee02ea9c32765741ce91366b518fc4d447')
13 b2sums=('7120b79433774ea1e41efd31fc2d6820f710fed68c88cbafd36b433977d7d88ccc5abd57a19e527ad8a9b39a91a51f6bb3a9ec8e7241ab13d92833ff2e65c9d3')
15 build() {
16   cmake -DCMAKE_INSTALL_PREFIX=/usr \
17         -DCMAKE_BUILD_TYPE=None \
18         -DBITSERY_BUILD_TESTS=ON \
19         -Wno-dev \
20         -B build \
21         -S $pkgname-$pkgver
22   make VERBOSE=1 -C build
25 check() {
26   ctest --test-dir build/tests
29 package() {
30   make VERBOSE=1 DESTDIR="$pkgdir/" install -C build
31   install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"