summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-02-01 15:06:15 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-02-01 15:06:15 (GMT)
commit6a0fd3dc24b509bef8ac5dbb60498adf4e300526 (patch)
treec7f666c620c3075318d8af5228907703f7d23c02 /abs
parentd049909afcd8a65b626ce7dfa9076d9b4442920a (diff)
downloadlinhes_pkgbuild-6a0fd3dc24b509bef8ac5dbb60498adf4e300526.zip
linhes_pkgbuild-6a0fd3dc24b509bef8ac5dbb60498adf4e300526.tar.gz
linhes_pkgbuild-6a0fd3dc24b509bef8ac5dbb60498adf4e300526.tar.bz2
rapidjson: initial inclusion: dep of kodi 18. refs #1029
Diffstat (limited to 'abs')
-rw-r--r--abs/extra/rapidjson/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/abs/extra/rapidjson/PKGBUILD b/abs/extra/rapidjson/PKGBUILD
new file mode 100644
index 0000000..27612a6
--- /dev/null
+++ b/abs/extra/rapidjson/PKGBUILD
@@ -0,0 +1,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
+}