summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/jsoncpp/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/jsoncpp/APKBUILD b/testing/jsoncpp/APKBUILD
new file mode 100644
index 000000000..52e4c590f
--- /dev/null
+++ b/testing/jsoncpp/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=jsoncpp
+pkgver=0.5.0
+pkgrel=0
+pkgdesc="JSON C++ library"
+url="http://jsoncpp.sourceforge.net/"
+arch="all"
+license="PublicDomain"
+depends=
+depends_dev=
+makedepends="$depends_dev scons"
+install=""
+subpackages="$pkgname-dev"
+source="http://downloads.sourceforge.net/project/jsoncpp/jsoncpp/$pkgver/jsoncpp-src-$pkgver.tar.gz"
+
+_builddir="$srcdir"/jsoncpp-src-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ scons platform=linux-gcc || return 1
+}
+
+package() {
+ cd "$_builddir"
+
+ mkdir -p "$pkgdir"/usr/lib
+ cp "$_builddir"/libs/*/libjson*.so "$pkgdir"/usr/lib/libjson.so
+
+ mkdir -p "$pkgdir"/usr/include
+ cp -r "$_builddir"/include/* "$pkgdir"/usr/include/
+}
+
+md5sums="24482b67c1cb17aac1ed1814288a3a8f jsoncpp-src-0.5.0.tar.gz"
+