diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:25:22 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:25:22 +0000 |
commit | 71908fe6c513f689497bc531e409f688ac373cba (patch) | |
tree | 25a04e20923fe3ad0125a6be6874f6b7e0251bd3 /community/qt5-qtxmlpatterns | |
parent | c4ced7f61f3c86da26d7576e25082b76e1b6b65c (diff) | |
download | aports-71908fe6c513f689497bc531e409f688ac373cba.tar.bz2 aports-71908fe6c513f689497bc531e409f688ac373cba.tar.xz |
community/qt5-qtxmlpatterns: upgrade to 5.9.3, improved APKBUILD
Diffstat (limited to 'community/qt5-qtxmlpatterns')
-rw-r--r-- | community/qt5-qtxmlpatterns/APKBUILD | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/community/qt5-qtxmlpatterns/APKBUILD b/community/qt5-qtxmlpatterns/APKBUILD index 47d50d8a52..74952a34cc 100644 --- a/community/qt5-qtxmlpatterns/APKBUILD +++ b/community/qt5-qtxmlpatterns/APKBUILD @@ -1,37 +1,41 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=qt5-qtxmlpatterns -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 - QtXmlPatterns component" url="http://qt-project.org/" arch="all" license="LGPLv2 with exceptions or GPLv3 with exceptions" -depends="" -depends_dev="qt5-qtbase-dev" -makedepends="$depends_dev" -install="" +makedepends="qt5-qtbase-dev" subpackages="$pkgname-dev" -_ver=${pkgver/_/-} -_ver=${_ver/beta0/beta} -_ver=${_ver/rc0/rc} -_V=${_ver/rc/RC} 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/qtxmlpatterns-opensource-src-$_V.tar.xz" +builddir="$srcdir"/$_pkgname-${_V%-*} +builddir="$srcdir"/$_pkgname-$_V -builddir="$srcdir"/qtxmlpatterns-opensource-src-$_V build() { cd "$builddir" - qmake-qt5 && make || return 1 + qmake-qt5 && make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make install INSTALL_ROOT="$pkgdir" || return 1 + make install INSTALL_ROOT="$pkgdir" } -sha512sums="e54096b27e599c9751a17f2ec8c7570f682a517df75b9e07f845151e282320063519539b28761d1964ead0a0620b4eb4802020556ebdf8343fe1c156d4547827 qtxmlpatterns-opensource-src-5.9.1.tar.xz" +sha512sums="4b345940cc66cfd14de365f2802e49a3ad88c25a46e4c36765e31586728496f3bc5aa9a856a78b79b583e577a70dca5c70534d9689627773e142e9c7e421de01 qtxmlpatterns-opensource-src-5.9.3.tar.xz" |