[arch-commits] Commit in rapidjson/repos (2 files)

2020-07-07 Thread Felix Yan via arch-commits
Date: Tuesday, July 7, 2020 @ 18:07:04
  Author: felixonmars
Revision: 659991

archrelease: copy trunk to community-staging-any

Added:
  rapidjson/repos/community-staging-any/
  rapidjson/repos/community-staging-any/PKGBUILD
(from rev 659989, rapidjson/trunk/PKGBUILD)

--+
 PKGBUILD |   54 ++
 1 file changed, 54 insertions(+)

Copied: rapidjson/repos/community-staging-any/PKGBUILD (from rev 659989, 
rapidjson/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2020-07-07 18:07:04 UTC (rev 659991)
@@ -0,0 +1,54 @@
+# Maintainer: Christian Rebischke 
+# Maintainer: Levente Polyak 
+# Contributor: Jonathan Steel 
+# Contributor: Yunhui Fu 
+
+pkgname=rapidjson
+pkgver=1.1.0
+pkgrel=5
+pkgdesc="Fast JSON parser/generator for C++ with both SAX/DOM style API"
+arch=('any')
+url="https://github.com/miloyip/rapidjson;
+license=('MIT')
+makedepends=('cmake')
+checkdepends=('gtest' 'valgrind')
+source=(https://github.com/miloyip/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('2e82a4bddcd6c4669541f5945c2d240fb1b4fdd6e239200246d3dd50ce98733f0a4f6d3daa56f865d8c88779c036099c52a9ae85d47ad263686b68a88d832dff')
+
+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=None \
+  -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+  -DRAPIDJSON_HAS_STDSTRING=ON \
+  -DRAPIDJSON_BUILD_CXX11=ON \
+  -DRAPIDJSON_ENABLE_INSTRUMENTATION_OPT=OFF \
+  -DDOC_INSTALL_DIR=/usr/share/doc/${pkgname} \
+  ..
+
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver/build
+  ctest -j 2 -V
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  DESTDIR="$pkgdir" make -C build install
+
+  install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
+
+# vim: ts=2 sw=2 et:


[arch-commits] Commit in rapidjson/repos (2 files)

2019-08-14 Thread Levente Polyak via arch-commits
Date: Wednesday, August 14, 2019 @ 08:20:40
  Author: anthraxx
Revision: 499177

archrelease: copy trunk to community-testing-any

Added:
  rapidjson/repos/community-testing-any/
  rapidjson/repos/community-testing-any/PKGBUILD
(from rev 499176, rapidjson/trunk/PKGBUILD)

--+
 PKGBUILD |   54 ++
 1 file changed, 54 insertions(+)

Copied: rapidjson/repos/community-testing-any/PKGBUILD (from rev 499176, 
rapidjson/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2019-08-14 08:20:40 UTC (rev 499177)
@@ -0,0 +1,54 @@
+# Maintainer: Christian Rebischke 
+# Maintainer: Levente Polyak 
+# Contributor: Jonathan Steel 
+# Contributor: Yunhui Fu 
+
+pkgname=rapidjson
+pkgver=1.1.0
+pkgrel=4
+pkgdesc="Fast JSON parser/generator for C++ with both SAX/DOM style API"
+arch=('any')
+url="https://github.com/miloyip/rapidjson;
+license=('MIT')
+makedepends=('cmake')
+checkdepends=('gtest' 'valgrind')
+source=(https://github.com/miloyip/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('2e82a4bddcd6c4669541f5945c2d240fb1b4fdd6e239200246d3dd50ce98733f0a4f6d3daa56f865d8c88779c036099c52a9ae85d47ad263686b68a88d832dff')
+
+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=None \
+  -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+  -DRAPIDJSON_HAS_STDSTRING=ON \
+  -DRAPIDJSON_BUILD_CXX11=ON \
+  -DRAPIDJSON_ENABLE_INSTRUMENTATION_OPT=OFF \
+  -DDOC_INSTALL_DIR=/usr/share/doc/${pkgname} \
+  ..
+
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver/build
+  ctest -j 2 -V
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  DESTDIR="$pkgdir" make -C build install
+
+  install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
+
+# vim: ts=2 sw=2 et: