aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qjson/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/qjson/APKBUILD')
-rw-r--r--testing/qjson/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/qjson/APKBUILD b/testing/qjson/APKBUILD
new file mode 100644
index 0000000000..664c147aa9
--- /dev/null
+++ b/testing/qjson/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: k0r10n <k0r10n.dev@gmail.com>
+# Maintainer:
+pkgname=qjson
+pkgver=0.8.1
+pkgrel=0
+pkgdesc="A qt-based library that maps JSON data to QVariant objects"
+url="http://qjson.sourceforge.net/"
+arch="all"
+license="GPL"
+depends=
+depends_dev="qt-dev"
+makedepends="$depends_dev cmake"
+install=""
+subpackages="$pkgname-dev"
+source="http://downloads.sourceforge.net/project/qjson/qjson/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+
+_builddir="$srcdir"/${pkgname}-${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
+ mkdir -p "$_builddir"/build
+}
+
+build() {
+ cd "$_builddir"/build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ "$_builddir" || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"/build
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="323fbac54a5a20c0b8fe45c1ced03e2d qjson-0.8.1.tar.bz2"
+sha256sums="cd4db5b956247c4991a9c3e95512da257cd2a6bd011357e363d02300afc814d9 qjson-0.8.1.tar.bz2"
+sha512sums="03e65bbdf6d397f77319867a03377deb419eac46ad91bc06abb7bc68d8f8f2e490db87d909ce51e065f22e5d201f1f73d57f72e14bc378580dbf40b855f1bc72 qjson-0.8.1.tar.bz2"