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

Package v0.2.9.2.

This commit is contained in:
2019-12-25 13:11:00 +01:00
commit 1ad5c582cc
2 changed files with 48 additions and 0 deletions

33
PKGBUILD Normal file
View File

@@ -0,0 +1,33 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=json_dto
pkgver=0.2.9.2
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=('cf12a66992e798bb801e590bb69a982272689238848c37e5853d7f6813d7c82f')
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" "LICENSE"
}