milis/talimatname/genel/jsoncpp/talimat

29 lines
690 B
Plaintext
Raw Normal View History

2017-01-31 02:35:21 +01:00
# Description: JSON C++ kütüphanesi
# URL: http://jsoncpp.sourceforge.net/
2016-07-21 20:30:14 +02:00
# Packager: milisarge
2017-07-25 03:13:20 +02:00
# Depends on: cmake
2016-07-21 20:30:14 +02:00
name=jsoncpp
2017-07-25 03:13:20 +02:00
version=1.8.1
2016-07-21 20:30:14 +02:00
release=1
2017-07-25 03:13:20 +02:00
source=(https://github.com/open-source-parsers/$name/archive/$version.zip--${name}-${version}.tar.gz)
2016-07-21 20:30:14 +02:00
build () {
2017-07-25 03:13:20 +02:00
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}"
2016-07-21 20:30:14 +02:00
}