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

26 lines
570 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: JSON for Modern C++
2017-08-06 03:25:25 +02:00
# URL: https://nlohmann.github.io/json/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: cmake
2017-08-06 03:25:25 +02:00
2017-10-28 14:10:23 +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)
2017-08-06 03:25:25 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd "json-$surum"
2017-08-06 03:25:25 +02:00
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
}