diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-08 12:27:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-08 12:27:50 +0000 |
commit | 520cfaf0baf151b8b41d732f9ffae26c0cfb3ce1 (patch) | |
tree | 7050eb50d5bd80632ea91bafa89a2c3d198957e1 /community/qjson | |
parent | e53a3615c89c4604acef23783ae2b6950a9f0686 (diff) | |
download | aports-520cfaf0baf151b8b41d732f9ffae26c0cfb3ce1.tar.bz2 aports-520cfaf0baf151b8b41d732f9ffae26c0cfb3ce1.tar.xz |
community/qjson: move from main due to qt5
Diffstat (limited to 'community/qjson')
-rw-r--r-- | community/qjson/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/qjson/APKBUILD b/community/qjson/APKBUILD new file mode 100644 index 0000000000..76c509297c --- /dev/null +++ b/community/qjson/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: k0r10n <k0r10n.dev@gmail.com> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=qjson +pkgver=0.9.0 +pkgrel=1 +pkgdesc="A qt-based library that maps JSON data to QVariant objects" +url="http://qjson.sourceforge.net/" +arch="all" +license="GPL" +makedepends="qt5-qtbase-dev cmake" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/flavio/$pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir"/${pkgname}-${pkgver} + +prepare() { + cd "$_builddir" + mkdir -p "$builddir"/build +} + +build() { + cd "$builddir"/build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + "$builddir" + make +} + +package() { + cd "$builddir"/build + make DESTDIR="$pkgdir" install +} + +sha512sums="ff0674f32abc6c88f9c535a58931f60baafa355655b043009a2574dadb822f10ec25017b78f2911f897a554a34733d7332c94cf4290dec16a631e22070c15e61 qjson-0.9.0.tar.gz" |