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

27 lines
592 B
Plaintext
Raw Normal View History

2018-08-02 09:21:30 +02:00
# Tanım: Modern C++ için JSON
2018-06-09 00:06:58 +02:00
# URL: https://nlohmann.github.io/json/
# Paketçi: milisarge
# Gerekler: cmake
2018-08-02 09:21:30 +02:00
# Grup: geliştirme
2018-06-09 00:06:58 +02:00
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
}