blob: 27612a66578061132ff2f7907fe76e5d4b6d7361 (
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: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Yunhui Fu <yhfudev@gmail.com>
pkgname=rapidjson
pkgver=1.1.0
pkgrel=3
pkgdesc="A fast JSON parser/generator for C++ with both SAX/DOM style API"
arch=('any')
url="https://github.com/miloyip/rapidjson"
license=('MIT')
makedepends=('gcc' 'cmake')
source=($pkgname-$pkgver.tar.gz::https://github.com/miloyip/$pkgname/archive/v$pkgver.tar.gz)
md5sums=('badd12c511e081fec6c89c43a7027bce')
prepare() {
cd $pkgname-$pkgver
find -name CMakeLists.txt | xargs sed -e 's|-Werror||' -i # Don't use -Werror
}
build () {
cd $pkgname-$pkgver
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make
}
package() {
cd $pkgname-$pkgver/build
DESTDIR="$pkgdir" make install
install -Dm644 ../license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
}
|