diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:21:28 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-12-02 04:21:28 +0000 |
commit | afc0c135d55da625f597bfd83dfbe7ffda1d8dc8 (patch) | |
tree | 765284f6e3a97d7e478714075395f1175146e8a0 /community/qt5-qtdeclarative | |
parent | 5703138b68f73c9d1e202a576b62d8956984cc5f (diff) | |
download | aports-afc0c135d55da625f597bfd83dfbe7ffda1d8dc8.tar.bz2 aports-afc0c135d55da625f597bfd83dfbe7ffda1d8dc8.tar.xz |
community/qt5-qtdeclarative: upgrade to 5.9.3, improved APKBUILD
Diffstat (limited to 'community/qt5-qtdeclarative')
-rw-r--r-- | community/qt5-qtdeclarative/APKBUILD | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/community/qt5-qtdeclarative/APKBUILD b/community/qt5-qtdeclarative/APKBUILD index a9d13e5f46..bb49ff0910 100644 --- a/community/qt5-qtdeclarative/APKBUILD +++ b/community/qt5-qtdeclarative/APKBUILD @@ -1,6 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=qt5-qtdeclarative -pkgver=5.9.1 +_pkgname=${pkgname/qt5-//}-opensource-src +pkgver=5.9.3 _ver=${pkgver/_p/-} _ver=${_ver/_/-} _ver=${_ver/beta0/beta} @@ -11,45 +12,36 @@ pkgdesc="Qt5 - QtDeclarative 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/qtdeclarative-opensource-src-$_V.tar.xz" +source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/$_pkgname-$_V.tar.xz" _qt5_prefix=/usr/lib/qt5 -builddir="$srcdir"/qtdeclarative-opensource-src-${_V%-*} +builddir="$srcdir"/$_pkgname-${_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" mkdir -p "$pkgdir"/usr/bin/ for i in "$pkgdir"/$_qt5_prefix/bin/*; do - ln -s ../lib/qt5/bin/${i##*/} "$pkgdir"/usr/bin/${i##*/}-qt5 || return 1 + ln -s ../lib/qt5/bin/${i##*/} "$pkgdir"/usr/bin/${i##*/}-qt5 done - } -sha512sums="211d27bbbc1f5357bd8e9c09196360da2cf48bda8f8230355aa245c45387e653cda92016e4057c7feffd0bd9e44aaf7511161cdb5a0d2c7009f6e57fa1097f66 qtdeclarative-opensource-src-5.9.1.tar.xz" +sha512sums="933caf5848437cde45b4bbf0c70b6cafbc690657c651508b28138b2f90d2f823f4842bc709f4726e2c88d3913a92240b0dcd9248d83af0d06d7127b9a8211b24 qtdeclarative-opensource-src-5.9.3.tar.xz" |