diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:23:23 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:23:23 +0000 |
commit | 6d3b759bce6a2a1959ec0220fda1a78a1690ff75 (patch) | |
tree | 9c130e6ff870e8a70e4041f6d33910d7477693ed /community/qt5-qtquickcontrols | |
parent | fd4b568b6023a88be1b81f4ab74b120017d757d3 (diff) | |
download | aports-6d3b759bce6a2a1959ec0220fda1a78a1690ff75.tar.bz2 aports-6d3b759bce6a2a1959ec0220fda1a78a1690ff75.tar.xz |
community/qt5-qtquickcontrols: upgrade to 5.9.3, improved APKBUILD
Diffstat (limited to 'community/qt5-qtquickcontrols')
-rw-r--r-- | community/qt5-qtquickcontrols/APKBUILD | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/community/qt5-qtquickcontrols/APKBUILD b/community/qt5-qtquickcontrols/APKBUILD index 38eaa93fcc..e1e02c8db5 100644 --- a/community/qt5-qtquickcontrols/APKBUILD +++ b/community/qt5-qtquickcontrols/APKBUILD @@ -1,47 +1,39 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=qt5-qtquickcontrols -pkgver=5.9.1 +_pkgname=${pkgname/qt5-//}-opensource-src +pkgver=5.9.3 _ver=${pkgver/_/-} _ver=${_ver/beta0/beta} _ver=${_ver/rc0/rc} _V=${_ver/rc/RC} - pkgrel=0 pkgdesc="Qt5 - module with set of QtQuick controls" url="http://qt-project.org/" arch="all" license="BSD and (LGPLv2 with exceptions or GPLv3 with exceptions) and GFDL" -depends="" -depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev" -makedepends="$depends_dev" -install="" -subpackages="" +makedepends="qt5-qtbase-dev qt5-qtdeclarative-dev" + case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac +source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/$_pkgname-$_V.tar.xz" -source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtquickcontrols-opensource-src-$_V.tar.xz" +builddir="$srcdir"/$_pkgname-${_V%-*} -builddir="$srcdir"/qtquickcontrols-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() { cd "$builddir" - make install INSTALL_ROOT="$pkgdir" || return 1 + make install INSTALL_ROOT="$pkgdir" } -sha512sums="f7797fe4f5360c814c426ed1db72e58d66a6ad11e9a94f62176736278f7218966032441b8c52fc815f609237bd3483e72023a3407e290b05c2cf9b815ededfe7 qtquickcontrols-opensource-src-5.9.1.tar.xz" +sha512sums="dc57c1960e598b81190924e35380bbb14e6696d72bdfa1db3ecca0715f930a53ae61daa7884f4c56af2b6f5896ee3b4b409cdae6192e82e6fa69d49a08b1db06 qtquickcontrols-opensource-src-5.9.3.tar.xz" |