milis/talimatname/genel/j/jsoncpp/talimat

29 lines
682 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: JSON C++ kütüphanesi
# URL: http://jsoncpp.sourceforge.net/
# Paketçi: milisarge
# Gerekler: cmake
name=jsoncpp
version=1.8.1
release=1
source=(https://github.com/open-source-parsers/$name/archive/$version.zip--${name}-${version}.tar.gz)
derle() {
cd ${name}-${version}
mkdir -p build
#python3 doxybuild.py --with-dot
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=ON \
..
make
cd ..
make -C build DESTDIR="${PKG}" install
install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${name}"
}