From dbd6d0fd9b71b3a425ca17c064c16141e6ad1c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 1 Oct 2020 23:07:45 +0700 Subject: [PATCH] rapidjson: clear all JSON licensed code --- srcpkgs/rapidjson/template | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/srcpkgs/rapidjson/template b/srcpkgs/rapidjson/template index 6bc0b221f88..84a5e608777 100644 --- a/srcpkgs/rapidjson/template +++ b/srcpkgs/rapidjson/template @@ -1,18 +1,25 @@ -# Template build file for 'rapidjson'. +# Template file for 'rapidjson' pkgname=rapidjson version=1.1.0 -revision=2 +revision=3 build_style=cmake -archs=noarch -short_desc="A fast JSON parser/generator for C++ with both SAX/DOM style API" +short_desc="Fast JSON parser/generator for C++ with both SAX/DOM style API" maintainer="Alexander Egorenkov " -license="BSD, MIT" +license="BSD-3-Clause, MIT" homepage="https://github.com/miloyip/rapidjson" distfiles="https://github.com/miloyip/${pkgname}/archive/v${version}.tar.gz" checksum=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e CXXFLAGS="-Wno-type-limits" +post_patch() { + # Remove bin/jsonchecker, which is the JSON licensed files + rm -rf bin/jsonchecker + vsed -i license.txt \ + -e 's/To avoid the problematic JSON.*//' \ + -e '/Under the JSON License/,/OTHER DEALINGS IN THE SOFTWARE/d' +} + post_install() { vlicense license.txt }