summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff43ee476bbb89972ad84e6fdd56977460bed66b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Alexander Bus <busfromrus@gmail.com>

pkgname=nlohmann-json-bin
pkgver=3.7.3
pkgrel=1
pkgdesc='Header-only JSON library for Modern C++ (quick installation without testing)'
arch=('any')
url='https://github.com/nlohmann/json'
license=('MIT')
provides=('nlohmann-json')
conflicts=('nlohmann-json' 'nlohmann-json-git')
source=("include-${pkgver}.zip::https://github.com/nlohmann/json/releases/download/v${pkgver}/include.zip"
        "https://raw.githubusercontent.com/nlohmann/json/v${pkgver}/LICENSE.MIT"
        "nlohmann_jsonConfig.cmake"
        "nlohmann_jsonConfigVersion.cmake"
        "nlohmann_jsonTargets.cmake")
sha256sums=('87b5884741427220d3a33df1363ae0e8b898099fbc59f1c451113f6732891014'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

package() {
    cd "${srcdir}"
    install -Dm644 LICENSE.MIT "${pkgdir}/usr/share/licenses/nlohmann-json/LICENSE.MIT"
    install -Dm644 nlohmann_jsonConfig.cmake "${pkgdir}/usr/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake"
    install -Dm644 nlohmann_jsonConfigVersion.cmake "${pkgdir}/usr/lib/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake"
    install -Dm644 nlohmann_jsonTargets.cmake "${pkgdir}/usr/lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmake"
    cp -R include "${pkgdir}/usr"
}