2018-01-12 16:49:18 +01:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
|
|
|
_reponame=reflective-rapidjson
|
2019-09-30 17:31:33 +02:00
|
|
|
_llvmver=9
|
2018-01-12 16:49:18 +01:00
|
|
|
pkgname=reflective-rapidjson
|
2020-01-28 21:06:00 +01:00
|
|
|
pkgver=0.0.12
|
2019-10-12 23:54:01 +02:00
|
|
|
pkgrel=1
|
2018-11-01 05:16:53 +01:00
|
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
2018-01-12 16:49:18 +01:00
|
|
|
pkgdesc='Code generator for serializing/deserializing C++ objects to/from JSON using Clang and RapidJSON'
|
|
|
|
license=('GPL')
|
2018-03-14 19:07:00 +01:00
|
|
|
depends=('c++utilities' 'rapidjson' "llvm-libs>=${_llvmver}.0.0" "llvm-libs<$((_llvmver + 1)).0.0" 'clang')
|
2018-10-07 22:24:48 +02:00
|
|
|
optdepends=("boost: use Boost.Hana instead of code generator"
|
|
|
|
"$pkgname-doc: API documentation")
|
|
|
|
makedepends=('cmake' 'clang-tools-extra' 'llvm')
|
|
|
|
checkdepends=('cppunit' 'boost')
|
2018-01-12 16:49:18 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
2018-11-01 05:16:53 +01:00
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
2020-01-28 21:06:00 +01:00
|
|
|
sha256sums=('95692cfdb83e9658f2c4706b6a0b78cea91afbfb24a1b878efc39a05a4be7e23')
|
2018-01-12 16:49:18 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2019-05-04 16:29:53 +02:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING='Release' \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
|
|
.
|
2018-01-12 16:49:18 +01:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|