From 6a0fd3dc24b509bef8ac5dbb60498adf4e300526 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 1 Feb 2019 15:06:15 +0000 Subject: rapidjson: initial inclusion: dep of kodi 18. refs #1029 --- abs/extra/rapidjson/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 abs/extra/rapidjson/PKGBUILD 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 +# Contributor: Yunhui Fu + +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 +} -- cgit v0.12