diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-08 13:32:40 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2017-11-10 10:53:56 +0000 |
commit | d8bf167617dc3f1bc2a4a7db7473e2bcddaf2910 (patch) | |
tree | a76325b988cebccbd8f404ec60c781609601e954 /main | |
parent | ea0ef4eff968ea85a8224ca44d70330f9206a2e7 (diff) | |
download | aports-d8bf167617dc3f1bc2a4a7db7473e2bcddaf2910.tar.bz2 aports-d8bf167617dc3f1bc2a4a7db7473e2bcddaf2910.tar.xz |
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')
-rw-r--r-- | main/jsoncpp/APKBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/main/jsoncpp/APKBUILD b/main/jsoncpp/APKBUILD index 5941a1f20b..f95fb0a187 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() { |