diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:24:10 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:24:10 +0000 |
commit | 15205a44359c9fdea229e2721edacb3ad669521c (patch) | |
tree | 5bbab1466f580d1fdae8a5822f44ecacee7dc4fe /community/qt5-qtserialport | |
parent | 62fb545390abc2fbf69a900f51f15f8aa5758894 (diff) | |
download | aports-15205a44359c9fdea229e2721edacb3ad669521c.tar.bz2 aports-15205a44359c9fdea229e2721edacb3ad669521c.tar.xz |
community/qt5-qtserialport: upgrade to 5.9.3, improved APKBUILD
Diffstat (limited to 'community/qt5-qtserialport')
-rw-r--r-- | community/qt5-qtserialport/APKBUILD | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/community/qt5-qtserialport/APKBUILD b/community/qt5-qtserialport/APKBUILD index 0fc0af9382..73018ea900 100644 --- a/community/qt5-qtserialport/APKBUILD +++ b/community/qt5-qtserialport/APKBUILD @@ -1,27 +1,42 @@ # Contributor: Denis Ryabyy <vv1r0x@gmail.com> # Maintainer: Denis Ryabyy <vv1r0x@gmail.com> pkgname=qt5-qtserialport -_pkgname=qtserialport-opensource -pkgver=5.9.1 +_pkgname=${pkgname/qt5-//}-opensource-src +pkgver=5.9.3 +_ver=${pkgver/_p/-} +_ver=${_ver/_/-} +_ver=${_ver/beta0/beta} +_ver=${_ver/rc0/rc} +_V=${_ver/rc/RC} pkgrel=0 pkgdesc="Qt5 - QtSerialPort module" url="http://wiki.qt.io/QtSerialPort" arch="all" -license="LGPL" -depends="" +license="LGPLv2 with exceptions or GPLv3 with exceptions" makedepends="qt5-qtbase-dev eudev-dev" subpackages="$pkgname-dev" -source="https://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/submodules/$_pkgname-src-$pkgver.tar.xz" -builddir="$srcdir/$_pkgname-src-$pkgver" + +case $pkgver in +*_beta*|*_rc*) _rel=development_releases;; +*) _rel=official_releases;; +esac +source="http://download.qt.io/official_releases/qt/${pkgver%.*}/$_ver/submodules/$_pkgname-$_ver.tar.xz" + +builddir="$srcdir"/$_pkgname-${_V%-*} build() { cd "$builddir" qmake-qt5 && make } +check() { + cd "$builddir" + make check +} + package() { cd "$builddir" make INSTALL_ROOT="$pkgdir" install } -sha512sums="ec86981bf276dc7c084700a595118dca1f346bd840e038d551900a3b74b11b9cc71ce492a7314476f9a92d1e703ae6755cabcf0f59d1db5b61c836c5a329abcb qtserialport-opensource-src-5.9.1.tar.xz" +sha512sums="40ab6e7f0815f0f2c38062858e185d9a04cdd1bb360f677b7370bd902019346223e8bf7ee34079718bbb36b793ef773ecbb8b2eca5f5f5996c77729d7da77aeb qtserialport-opensource-src-5.9.3.tar.xz" |