mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-07 06:17:14 +02:00
community/qt5-qttranslations: upgrade to 5.9.3, improved APKBUILD
This commit is contained in:
parent
56a8933361
commit
c4ced7f61f
@ -1,47 +1,38 @@
|
|||||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
pkgname=qt5-qttranslations
|
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
|
pkgrel=0
|
||||||
pkgdesc="Qt5 - QtTranslations module"
|
pkgdesc="Qt5 - QtTranslations module"
|
||||||
url="http://qt-project.org/"
|
url="http://qt-project.org/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="LGPLv2 with exceptions or GPLv3 with exceptions and GFDL"
|
license="LGPLv2 with exceptions or GPLv3 with exceptions and GFDL"
|
||||||
depends=""
|
makedepends="qt5-qttools-dev"
|
||||||
depends_dev=""
|
|
||||||
makedepends="$depends_dev qt5-qttools-dev"
|
|
||||||
install=""
|
|
||||||
subpackages=""
|
|
||||||
|
|
||||||
_ver=${pkgver/_/-}
|
|
||||||
_ver=${_ver/beta0/beta}
|
|
||||||
_ver=${_ver/rc0/rc}
|
|
||||||
_V=${_ver/rc/RC}
|
|
||||||
case $pkgver in
|
case $pkgver in
|
||||||
*_beta*|*_rc*) _rel=development_releases;;
|
*_beta*|*_rc*) _rel=development_releases;;
|
||||||
*) _rel=official_releases;;
|
*) _rel=official_releases;;
|
||||||
esac
|
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
|
|
||||||
cd "$builddir"
|
|
||||||
for i in $source; do
|
|
||||||
case $i in
|
|
||||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
qmake-qt5 && make || return 1
|
qmake-qt5 && make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
make check
|
||||||
|
}
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user