Upstream added a gtk2 platform theme

This commit is contained in:
nfnty 2016-10-02 10:59:17 +02:00
parent 1902d7bcc3
commit 7fd304eb3e
No known key found for this signature in database
GPG Key ID: 32DD96A5D0370907
3 changed files with 20 additions and 0 deletions

View File

@ -3,6 +3,7 @@ pkgbase = qt5-styleplugins
pkgver = 5.0.0
pkgrel = 2
url = https://code.qt.io/cgit/qt/qtstyleplugins
install = install.sh
arch = i686
arch = x86_64
license = LGPL

View File

@ -21,6 +21,8 @@ sha512sums=(
'SKIP'
)
install='install.sh'
prepare() {
cd "${srcdir}/${_srcname}"

17
install.sh Normal file
View File

@ -0,0 +1,17 @@
_5_0_0_2_changes() {
echo ':: Upstream added a gtk2 platform theme'
echo ' unexport `QT_STYLE_OVERRIDE`'
echo ' export `QT_QPA_PLATFORMTHEME=gtk2`'
}
post_upgrade() {
local versions=(
'5.0.0-2'
)
local version
for version in "${versions[@]}"; do
if [[ "$( vercmp "${version}" "${2}" )" -eq 1 ]]; then
"$( printf '_%s_changes' "${version}" | perl -p -e 's/\.|-/_/g' )"
fi
done
}