aboutsummaryrefslogtreecommitdiffstats
path: root/main/qjson
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-03 21:15:29 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-03 21:15:29 +0200
commit9b0581f2f98d4be84009c964cb3776deeeecf8e2 (patch)
tree8b1b73593ed6c4f6c57351aad26ea4e737e793b2 /main/qjson
parent1b4921b2dfe24040998ba300fc2d488ef82497bc (diff)
downloadaports-9b0581f2f98d4be84009c964cb3776deeeecf8e2.tar.bz2
aports-9b0581f2f98d4be84009c964cb3776deeeecf8e2.tar.xz
testing/qjson: move to main
Diffstat (limited to 'main/qjson')
-rw-r--r--main/qjson/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/qjson/APKBUILD b/main/qjson/APKBUILD
new file mode 100644
index 0000000000..664c147aa9
--- /dev/null
+++ b/main/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"