diff options
author | haawda | 2019-07-30 23:18:08 +0200 |
---|---|---|
committer | haawda | 2019-07-30 23:18:08 +0200 |
commit | d018e71ac086483d1eeebc612c89be036853a53e (patch) | |
tree | 01e63888349443a692d5b2a01c1194ee22b666bc | |
parent | 0013ef00122446cf00db77c5a05e1344866c1074 (diff) | |
download | aur-d018e71ac086483d1eeebc612c89be036853a53e.tar.gz |
rename check to build
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 5 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = nlohmann-json pkgdesc = Header-only JSON library for Modern C++ pkgver = 3.7.0 - pkgrel = 4 + pkgrel = 5 url = https://github.com/nlohmann/json arch = any license = MIT @@ -2,7 +2,7 @@ pkgname=nlohmann-json pkgver=3.7.0 -pkgrel=4 +pkgrel=5 pkgdesc="Header-only JSON library for Modern C++" url="https://github.com/nlohmann/json" license=('MIT') @@ -11,9 +11,8 @@ makedepends=('cmake') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('d51a3a8d3efbb1139d7608e28782ea9efea7e7933157e8ff8184901efd8ee760') -check() { - [[ -d nlohmann-json-build ]] || mkdir -p nlohmann-json-build - cd nlohmann-json-build +build() { + cd json-$pkgver cmake "$srcdir"/json-$pkgver \ -DBUILD_TESTING=ON \ @@ -23,7 +22,7 @@ check() { } package() { - cd nlohmann-json-build + cd json-$pkgver make DESTDIR="$pkgdir" install install -Dm644 "$srcdir"/json-$pkgver/LICENSE.MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.MIT } |