diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:25:03 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:25:03 +0000 |
commit | c4ced7f61f3c86da26d7576e25082b76e1b6b65c (patch) | |
tree | b1807710235eaa3207445f3ce424e0a448679d96 /community/qt5-qttranslations | |
parent | 56a8933361c09c905a84568436e2ebb396034850 (diff) | |
download | aports-c4ced7f61f3c86da26d7576e25082b76e1b6b65c.tar.bz2 aports-c4ced7f61f3c86da26d7576e25082b76e1b6b65c.tar.xz |
community/qt5-qttranslations: upgrade to 5.9.3, improved APKBUILD
Diffstat (limited to 'community/qt5-qttranslations')
-rw-r--r-- | community/qt5-qttranslations/APKBUILD | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/community/qt5-qttranslations/APKBUILD b/community/qt5-qttranslations/APKBUILD index 2b90da708a..2ad852e266 100644 --- a/community/qt5-qttranslations/APKBUILD +++ b/community/qt5-qttranslations/APKBUILD @@ -1,47 +1,38 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=qt5-qttranslations -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 - QtTranslations module" url="http://qt-project.org/" arch="noarch" license="LGPLv2 with exceptions or GPLv3 with exceptions and GFDL" -depends="" -depends_dev="" -makedepends="$depends_dev qt5-qttools-dev" -install="" -subpackages="" +makedepends="qt5-qttools-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/qttranslations-opensource-src-$_V.tar.xz" +builddir="$srcdir"/$_pkgname-${_V%-*} -builddir="$srcdir"/qttranslations-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="d15c9a095c095357d88826d53636ade8834b1a7f49ead53260c6b96056a478bb72c9f42cbe1cd1ea15db65c0dbc2614f18e720a55e78273dd19e91ebcbbcdb34 qttranslations-opensource-src-5.9.1.tar.xz" +sha512sums="b8577d33596e6df7a491d40f4c40889ea1d8ccb422e132affc66d78a8e137c5e96754d642fb08e328ba079e675286b875b1806048361c6faaf0c1b13cba4a5c5 qttranslations-opensource-src-5.9.3.tar.xz" |