blob: 5662305aba68fd6c4952f7cf6f23df3d7c24b1c7 (
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
38
39
40
|
# Maintainer: Tolga HOŞGÖR <fasdfasdas@gmail.com>
_gitname=rapidjson
pkgname=rapidjson-git
pkgver=r1909.3202b0a3
pkgrel=1
pkgdesc="Rapidjson is an attempt to create the fastest JSON parser and generator."
arch=('any')
url="https://github.com/miloyip/rapidjson"
license=('GPL')
conflicts=('rapidjson')
provides=('rapidjson')
makedepends=('git' 'cmake')
source=("git+https://github.com/miloyip/$_gitname.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_gitname"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
-DRAPIDJSON_HAS_STDSTRING=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DRAPIDJSON_BUILD_EXAMPLES=OFF \
-DRAPIDJSON_BUILD_TESTS=OFF \
-DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package() {
cd "$srcdir/$_gitname/build"
make install
}
|