summaryrefslogtreecommitdiff
path: root/main/jsoncpp
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-08 13:32:40 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 10:53:56 +0000
commitd8bf167617dc3f1bc2a4a7db7473e2bcddaf2910 (patch)
treea76325b988cebccbd8f404ec60c781609601e954 /main/jsoncpp
parentea0ef4eff968ea85a8224ca44d70330f9206a2e7 (diff)
downloadaports-d8bf167617dc3f1bc2a4a7db7473e2bcddaf2910.zip
main/jsoncpp: fix build and add check
Add python2-dev to makedepends as jsoncpp requires python to build. Also add check() function.
Diffstat (limited to 'main/jsoncpp')
-rw-r--r--main/jsoncpp/APKBUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/main/jsoncpp/APKBUILD b/main/jsoncpp/APKBUILD
index 5941a1f20b2..f95fb0a1877 100644
--- a/main/jsoncpp/APKBUILD
+++ b/main/jsoncpp/APKBUILD
@@ -2,12 +2,12 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=jsoncpp
pkgver=1.8.1
-pkgrel=0
+pkgrel=1
pkgdesc="JSON C++ library"
url="https://github.com/open-source-parsers/jsoncpp"
arch="all"
license="PublicDomain"
-makedepends="scons"
+makedepends="scons python2-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/open-source-parsers/jsoncpp/archive/$pkgver.tar.gz"
builddir="$srcdir"/jsoncpp-$pkgver
@@ -21,6 +21,12 @@ build() {
# build a proper shared lib
g++ -o libjsoncpp.so.0.0.0 -shared -Wl,-soname,libjsoncpp.so.0 \
buildscons/linux-gcc-*/src/lib_json/*.os -lpthread
+
+}
+
+check() {
+ cd "$builddir"
+ scons check platform=linux-gcc
}
package() {