1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 12:40:30 +01:00

Add 'json_dto/' from commit 'a02ef78607734d196172022031177fb454ee7fce'

git-subtree-dir: json_dto
git-subtree-mainline: e56da89c93
git-subtree-split: a02ef78607
This commit is contained in:
2021-06-29 22:40:30 +02:00
2 changed files with 48 additions and 0 deletions

15
json_dto/.SRCINFO Normal file
View File

@@ -0,0 +1,15 @@
pkgbase = json_dto
pkgdesc = A small header-only library for converting data between json representation and c++ structs
pkgver = 0.2.11
pkgrel = 1
url = https://github.com/Stiffstream/json_dto
arch = any
license = BSD
checkdepends = catch2
makedepends = cmake
depends = rapidjson
source = json_dto-0.2.11.tar.gz::https://github.com/Stiffstream/json_dto/archive/v.0.2.11.tar.gz
sha256sums = 9ce409a8210ee78ef5b1e60dfb919186ba6a2e928e391e46f0e1d36049e06b1c
pkgname = json_dto

33
json_dto/PKGBUILD Normal file
View File

@@ -0,0 +1,33 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=json_dto
pkgver=0.2.11
pkgrel=1
pkgdesc="A small header-only library for converting data between json representation and c++ structs"
arch=(any)
url="https://github.com/Stiffstream/json_dto"
license=('BSD')
depends=(rapidjson)
makedepends=(cmake)
checkdepends=(catch2)
source=("$pkgname-$pkgver.tar.gz::https://github.com/Stiffstream/$pkgname/archive/v.$pkgver.tar.gz")
sha256sums=('9ce409a8210ee78ef5b1e60dfb919186ba6a2e928e391e46f0e1d36049e06b1c')
build() {
cd "$pkgname-v.$pkgver"
cmake dev -DCMAKE_INSTALL_PREFIX=/usr -DJSON_DTO_SAMPLE=Off \
-DJSON_DTO_FIND_DEPS=On -Wno-dev
make
}
check() {
cd "$pkgname-v.$pkgver"
cmake dev -DJSON_DTO_TEST=On
make
make test
}
package() {
cd "$pkgname-v.$pkgver"
make DESTDIR="$pkgdir/" install
install -m644 -Dt "$pkgdir/usr/share/licenses/$pkgname" "LICENSE"
}