archrelease: copy trunk to community-any
[ArchLinux/community.git] / cpp-hocon / trunk / PKGBUILD
blob28586e69cf097604b8eb3a82d8033f0af1fe4b8f
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: Thore Bödecker <foxxx0@archlinux.org>
3 # Contributor: Christian Rebischke <chris.rebischke@archlinux.org>
4 # Contributor: Tim Meusel <tim@bastelfreak.de>
6 pkgname=cpp-hocon
7 pkgver=0.3.0
8 pkgrel=14
9 pkgdesc="C++ port of the Typesafe Config library"
10 arch=('x86_64')
11 url="https://github.com/puppetlabs/cpp-hocon"
12 license=('APACHE')
13 depends=('boost-libs' 'gcc-libs' 'glibc' 'leatherman' 'leatherman_util.so' 'leatherman_locale.so')
14 makedepends=('boost' 'cmake' 'leatherman' 'rapidjson')
15 checkdepends=('python')
16 provides=('libcpp-hocon.so')
17 source=("$pkgname-$pkgver.tar.gz::https://github.com/puppetlabs/cpp-hocon/archive/$pkgver.tar.gz")
18 sha512sums=('de997e6d90330f901863b7da0d6f6e069a31e052b6f31c1e3009a9559c863f08879ecf4e202c763ec32567dd3a1e436ff5d3bf0b3009a085ef3ee95e5ca6c7e5')
20 prepare() {
21   cd "$pkgname-$pkgver"
22   :
25 build() {
26   cd "$pkgname-$pkgver"
28   cmake \
29     -B build \
30     -DCMAKE_BUILD_TYPE=None \
31     -DENABLE_CXX_WERROR=OFF \
32     -DCMAKE_INSTALL_PREFIX:PATH=/usr \
33     -DBUILD_SHARED_LIBS=ON
34   make -C build
37 check() {
38   cd "$pkgname-$pkgver"/build
39   make test
42 package() {
43   cd "$pkgname-$pkgver"
45   make -C build install DESTDIR="$pkgdir"
47   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
50 # vim: ts=2 sw=2 et: