milis/talimatname/genel/n/nlohmann-json/talimat

27 lines
592 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Modern C++ için JSON
# URL: https://nlohmann.github.io/json/
# Paketçi: milisarge
# Gerekler: cmake
# Grup: geliştirme
isim=nlohmann-json
surum=2.1.1
devir=1
kaynak=(https://github.com/nlohmann/json/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
derle() {
cd "json-$surum"
mkdir -p build
cd build
cmake ../ \
-DBuildTests=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
make DESTDIR=${PKG} install
install -d ${PKG}/usr/lib/
mv ${PKG}/usr/cmake ${PKG}/usr/lib/
install -Dm644 ../LICENSE.MIT ${PKG}/usr/share/licenses/nlohmann_json-git/LICENSE
}