diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-07-20 13:00:59 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-07-20 13:09:18 +0000 |
commit | 73b26bf9c5938526093e379c1848b64f6615c71c (patch) | |
tree | d18e1543e1c8c15ad6013568b6155f8d17e086b1 | |
parent | 2568607f076767189a90e1b046687fa34e71d1f3 (diff) | |
download | aports-73b26bf9c5938526093e379c1848b64f6615c71c.tar.bz2 aports-73b26bf9c5938526093e379c1848b64f6615c71c.tar.xz |
main/qjson: upgrade to 0.9.0, added maintainer
-rw-r--r-- | main/qjson/APKBUILD | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/main/qjson/APKBUILD b/main/qjson/APKBUILD index 664c147aa9..cd1eb5a9c0 100644 --- a/main/qjson/APKBUILD +++ b/main/qjson/APKBUILD @@ -1,44 +1,33 @@ # Contributor: k0r10n <k0r10n.dev@gmail.com> -# Maintainer: +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=qjson -pkgver=0.8.1 +pkgver=0.9.0 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="" +makedepends="qt-dev cmake" subpackages="$pkgname-dev" -source="http://downloads.sourceforge.net/project/qjson/qjson/${pkgver}/${pkgname}-${pkgver}.tar.bz2" +source="$pkgname-$pkgver.tar.gz::https://github.com/flavio/$pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir"/${pkgname}-${pkgver} -_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 + mkdir -p "$builddir"/build } build() { - cd "$_builddir"/build + cd "$builddir"/build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ - "$_builddir" || return 1 - make || return 1 + "$builddir" + make } package() { - cd "$_builddir"/build - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir"/build + make DESTDIR="$pkgdir" install } -md5sums="323fbac54a5a20c0b8fe45c1ced03e2d qjson-0.8.1.tar.bz2" -sha256sums="cd4db5b956247c4991a9c3e95512da257cd2a6bd011357e363d02300afc814d9 qjson-0.8.1.tar.bz2" -sha512sums="03e65bbdf6d397f77319867a03377deb419eac46ad91bc06abb7bc68d8f8f2e490db87d909ce51e065f22e5d201f1f73d57f72e14bc378580dbf40b855f1bc72 qjson-0.8.1.tar.bz2" +sha512sums="ff0674f32abc6c88f9c535a58931f60baafa355655b043009a2574dadb822f10ec25017b78f2911f897a554a34733d7332c94cf4290dec16a631e22070c15e61 qjson-0.9.0.tar.gz" |