jsoncpp - 1,8..3 - Update to latest version. Split package into a run-time and developer package subce a DKK as a DLL is now included libuv - 1.15.0 - New package required for cmake. rhrash - 1.3.5 - New package required for cmake. Note that the makefile and some other things had to ported to MSYS (Cygwin is incidental). The patch I wrote should also work on MINGW (kill two birds with one stone).
59 lines
1.4 KiB
Bash
59 lines
1.4 KiB
Bash
# Maintainer: Martell Malone <martellmalone@gmail.com>
|
|
|
|
pkgbase="jsoncpp"
|
|
pkgname=("${pkgbase}" "${pkgbase}-devel")
|
|
pkgver=1.8.3
|
|
pkgrel=1
|
|
pkgdesc="A C++ library for interacting with JSON"
|
|
arch=('any')
|
|
url="https://github.com/open-source-parsers/jsoncpp"
|
|
license=('MIT')
|
|
depends=("gcc-libs")
|
|
makedepends=("gcc"
|
|
"cmake"
|
|
"python2"
|
|
)
|
|
options=('staticlibs' '!strip' '!buildflags')
|
|
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/open-source-parsers/jsoncpp/archive/${pkgver}.tar.gz")
|
|
sha256sums=('3671ba6051e0f30849942cc66d1798fdf0362d089343a83f704c09ee7156604f')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
}
|
|
|
|
build() {
|
|
mkdir -p "${srcdir}/build-${CARCH}"
|
|
cd "${srcdir}/build-${CARCH}"
|
|
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DJSONCPP_WITH_CMAKE_PACKAGE=ON \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_STATIC_LIBS=ON \
|
|
../${pkgname}-${pkgver}
|
|
|
|
make
|
|
make DESTDIR=${srcdir}/dest install
|
|
}
|
|
|
|
package_jsoncpp() {
|
|
install=jsoncpp.install
|
|
groups=("libraries")
|
|
cd "${srcdir}/dest"
|
|
mkdir -p ${pkgdir}/usr/bin
|
|
cp usr/bin/*.dll ${pkgdir}/usr/bin/
|
|
}
|
|
|
|
package_jsoncpp-devel() {
|
|
pkgdesc="Development headers and library for JsonCpp"
|
|
depends=("$pkgbase=$pkgver")
|
|
options=('staticlibs')
|
|
groups=("development")
|
|
cd "${srcdir}/dest"
|
|
mkdir -p ${pkgdir}/usr/lib
|
|
mkdir -p ${pkgdir}/usr/include
|
|
cp -rf usr/lib/* ${pkgdir}/usr/lib
|
|
cp -rf usr/include/* ${pkgdir}/usr/include
|
|
}
|