blob: 61a4da5ea83b2e057493b3e475ae64fe4dc305b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Upstream Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=jsoncpp-cmake
pkgname_=jsoncpp
pkgver=1.9.5
pkgrel=1
pkgdesc="C++ library for interacting with JSON; cmake version: FS#60285"
arch=('x86_64')
url="https://github.com/open-source-parsers/jsoncpp"
license=('MIT' 'custom')
depends=('gcc-libs')
makedepends=('git' 'cmake' 'python')
provides=('jsoncpp' 'libjsoncpp.so')
conflicts=('jsoncpp')
options=('staticlibs')
source=("https://github.com/open-source-parsers/${pkgname_}/archive/${pkgver}/${pkgname_}-${pkgver}.tar.gz")
sha256sums=('f409856e5920c18d0c2fb85276e24ee607d2a09b5e7d5f0a371368903c275da2')
build() {
cmake -B build -S "${pkgname_}-${pkgver}" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_SBINDIR="bin" \
-DJSONCPP_WITH_CMAKE_PACKAGE=ON
cmake --build build
}
check() {
cd build
ctest
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "${pkgname_}-${pkgver}/LICENSE" -t "$pkgdir/usr/share/licenses/jsoncpp"
}
|