diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:23:43 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:23:43 +0000 |
commit | 62fb545390abc2fbf69a900f51f15f8aa5758894 (patch) | |
tree | cd785e5f7458b843bc87ccc0582735cd819615e1 /community/qt5-qtscript | |
parent | 6d3b759bce6a2a1959ec0220fda1a78a1690ff75 (diff) | |
download | aports-62fb545390abc2fbf69a900f51f15f8aa5758894.tar.bz2 aports-62fb545390abc2fbf69a900f51f15f8aa5758894.tar.xz |
community/qt5-qtscript: upgrade to 5.9.3, improved APKBUILD
Diffstat (limited to 'community/qt5-qtscript')
-rw-r--r-- | community/qt5-qtscript/APKBUILD | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/community/qt5-qtscript/APKBUILD b/community/qt5-qtscript/APKBUILD index 51aebe9cdf..5120304212 100644 --- a/community/qt5-qtscript/APKBUILD +++ b/community/qt5-qtscript/APKBUILD @@ -1,6 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=qt5-qtscript -pkgver=5.9.1 +_pkgname=${pkgname/qt5-//}-opensource-src +pkgver=5.9.3 _ver=${pkgver/_/-} _ver=${_ver/beta0/beta} _ver=${_ver/rc0/rc} @@ -10,38 +11,32 @@ pkgdesc="Qt5 - QtScript 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" -install="" +makedepends="qt5-qtbase-dev" subpackages="$pkgname-dev" + case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac -source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtscript-opensource-src-$_V.tar.xz +source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/$_pkgname-$_V.tar.xz qtscript-opensource-src-5.5.0-s390.patch" -builddir="$srcdir"/qtscript-opensource-src-$_V -prepare() { - local i +builddir="$srcdir"/$_pkgname-${_V%-*} + +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_ROOT="$pkgdir" install || return 1 + make INSTALL_ROOT="$pkgdir" install } -sha512sums="d4f5d0b804be742da5e439d13ef2c6b045dc5ddc81aa1462069db9a734cf1877b3205204a31c6775dd9bcb2c234e45f3d65dcc788f936fc0e49f6a4f37199b9f qtscript-opensource-src-5.9.1.tar.xz +sha512sums="a1a320780dbb83e8c5889c528648cd5cace79b29561902474f03e2dfeeef4ab451ac101fecff19130d8b55809f8e457b9198608153a91deed039f529d21a3006 qtscript-opensource-src-5.9.3.tar.xz 9253275dc268c4b8900dcefb66e6280076dc948bdf0765e0ba3e7c0ec690efaa3c61c5403560a8b4ee9167b43079fff9383e412f8fb912274f410d46fef8acdb qtscript-opensource-src-5.5.0-s390.patch" |