archrelease: copy trunk to community-any
[ArchLinux/community.git] / ulfius / trunk / PKGBUILD
blob7851269f65b1b6db1630948a19825aaba5426a5f
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 pkgname=ulfius
4 pkgver=2.7.13
5 pkgrel=1
6 pkgdesc='HTTP Framework for REST Applications in C'
7 arch=(x86_64)
8 url=https://github.com/babelouest/ulfius
9 license=(LGPL2.1)
10 depends=(
11   glibc
12   gnutls
13   jansson
14   libcurl.so
15   libmicrohttpd.so
16   liborcania.so
17   libyder.so
18   zlib
20 makedepends=(
21   cmake
22   doxygen
23   git
24   graphviz
25   ninja
27 provides=(libulfius.so)
28 _tag=3d40004de21c5d379568ef943a23b030a3f03922
29 source=(git+https://github.com/babelouest/ulfius.git#tag=${_tag})
30 validpgpkeys=(8405B02FCC28EF9744C8F253FE82139440BD22B9) # Nicolas Mora <nicolas@babelouest.org>
31 b2sums=(SKIP)
33 pkgver() {
34   cd ulfius
35   git describe --tags | sed 's/^v//'
38 build() {
39   cmake -S ulfius -B build -G Ninja \
40     -DCMAKE_BUILD_TYPE=None \
41     -DCMAKE_INSTALL_PREFIX=/usr \
42     -DBUILD_ULFIUS_DOCUMENTATION=ON
43   ninja -C build doc
46 package() {
47   DESTDIR="${pkgdir}" ninja -C build install
48   cp -dr --no-preserve=ownership ulfius/doc/html "${pkgdir}"/usr/share/doc/ulfius/
51 # vim: ts=2 sw=2 et: