aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qjson/APKBUILD
blob: 664c147aa947104341edd7f18a8c65a8b36854e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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"