aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-qtimageformats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-12-02 04:22:24 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-12-02 04:22:24 +0000
commitca9d7791fc143042129d69a34b03dc735ca3c45e (patch)
tree6829c34919f5d9053c7fcb248bdf20d57755ba01 /community/qt5-qtimageformats
parent74965ef9cd9dfad7b5bfb5e51b5fc256ebafb3f9 (diff)
downloadaports-ca9d7791fc143042129d69a34b03dc735ca3c45e.tar.bz2
aports-ca9d7791fc143042129d69a34b03dc735ca3c45e.tar.xz
community/qt5-qtimageformats: upgrade to 5.9.3, improved APKBUILD
Diffstat (limited to 'community/qt5-qtimageformats')
-rw-r--r--community/qt5-qtimageformats/APKBUILD31
1 files changed, 12 insertions, 19 deletions
diff --git a/community/qt5-qtimageformats/APKBUILD b/community/qt5-qtimageformats/APKBUILD
index 945009441d..bcf63a5a65 100644
--- a/community/qt5-qtimageformats/APKBUILD
+++ b/community/qt5-qtimageformats/APKBUILD
@@ -1,6 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtimageformats
-pkgver=5.9.1
+_pkgname=${pkgname/qt5-//}-opensource-src
+pkgver=5.9.3
_ver=${pkgver/_/-}
_ver=${_ver/beta0/beta}
_ver=${_ver/rc0/rc}
@@ -10,32 +11,24 @@ pkgdesc="Qt5 - QtImageFormats component"
url="http://qt-project.org/"
arch="all"
license="LGPLv2 with exceptions or GPLv3 with exceptions"
-depends=""
-depends_dev=""
-makedepends="$depends_dev qt5-qtbase-dev libmng-dev tiff-dev jasper-dev
- libwebp-dev"
-install=""
-subpackages=""
+makedepends="qt5-qtbase-dev libmng-dev tiff-dev jasper-dev libwebp-dev"
+
case $pkgver in
*_beta*|*_rc*) _rel=development_releases;;
*) _rel=official_releases;;
esac
-source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtimageformats-opensource-src-$_V.tar.xz"
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/$_pkgname-$_V.tar.xz"
+
+builddir="$srcdir"/$_pkgname-${_V%-*}
-builddir="$srcdir"/qtimageformats-opensource-src-$_V
-prepare() {
- local i
+build() {
cd "$builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ qmake-qt5 && make
}
-build() {
+check() {
cd "$builddir"
- qmake-qt5 && make || return 1
+ make check
}
package() {
@@ -43,4 +36,4 @@ package() {
make install INSTALL_ROOT="$pkgdir"
}
-sha512sums="03bc2cdebb8878bc8a0462d8eafadfa4c17cfd06ce7b65eb1f0cf3f4a0e2b673eff40a348898858e3dfcc680fac57c83a66d3bf059caa3b10825472f60650ff7 qtimageformats-opensource-src-5.9.1.tar.xz"
+sha512sums="521c805635084fba3746ee86ac7dfc94d2446114dd76aecad6a6f0cb97f49e443f078f2e0439a10a9d3d5fcd285136959b740707fb8d7776b0450f964950a864 qtimageformats-opensource-src-5.9.3.tar.xz"