mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-04-24 23:47:17 +00:00
added qupzilla with fixed colors
This commit is contained in:
parent
b561c558f7
commit
a600a571ca
68
qupzilla/PKGBUILD
Normal file
68
qupzilla/PKGBUILD
Normal file
@ -0,0 +1,68 @@
|
||||
# $Id: PKGBUILD 104846 2014-01-27 14:17:21Z speps $
|
||||
# Maintainer: speps <speps at aur dot archlinux dot org>
|
||||
|
||||
pkgbase=qupzilla
|
||||
pkgname=(qupzilla qupzilla-qt5)
|
||||
pkgver=1.6.1
|
||||
pkgrel=1
|
||||
pkgdesc="Cross-platform QtWebKit browser"
|
||||
arch=(i686 x86_64)
|
||||
url="http://www.qupzilla.com/"
|
||||
license=('GPL3')
|
||||
makedepends=('qtwebkit' 'qt5-webkit' 'qt5-script' 'hunspell')
|
||||
optdepends=('bash-completion: bash completion support')
|
||||
install="$pkgbase.install"
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/QupZilla/qupzilla/archive/v$pkgver.tar.gz"
|
||||
"${srcdir}/fix-color.patch")
|
||||
noextract=("$pkgbase-$pkgver.tar.gz")
|
||||
md5sums=('ca6fee487c9871d37d2dd09b3617b88f'
|
||||
'b4f5f825c3763bc42c2df1af2703ac07')
|
||||
|
||||
prepare() {
|
||||
# extract
|
||||
mkdir -p qt{4,5}
|
||||
bsdtar --strip-components 1 -zxf $pkgbase-$pkgver.tar.gz -C qt4
|
||||
bsdtar --strip-components 1 -zxf $pkgbase-$pkgver.tar.gz -C qt5
|
||||
|
||||
patch -p0 -i "${srcdir}/fix-color.patch"
|
||||
# configure
|
||||
export USE_WEBGL=true \
|
||||
QUPZILLA_PREFIX=/usr/
|
||||
}
|
||||
|
||||
build() {
|
||||
cd qt4
|
||||
qmake-qt4
|
||||
make
|
||||
|
||||
cd ../qt5
|
||||
qmake
|
||||
make
|
||||
}
|
||||
|
||||
package_qupzilla() {
|
||||
depends=('qtwebkit' 'hunspell')
|
||||
|
||||
cd qt4
|
||||
make INSTALL_ROOT="$pkgdir/" install
|
||||
|
||||
# zsh completion
|
||||
install -Dm644 linux/completion/_$pkgbase \
|
||||
"$pkgdir/usr/share/zsh/site-functions/_$pkgbase"
|
||||
}
|
||||
|
||||
package_qupzilla-qt5() {
|
||||
pkgdesc+=" (Qt5)"
|
||||
depends=('qt5-webkit' 'qt5-script' 'hunspell' 'desktop-file-utils' 'hicolor-icon-theme')
|
||||
provides=('qupzilla')
|
||||
conflicts=('qupzilla')
|
||||
|
||||
cd qt5
|
||||
make INSTALL_ROOT="$pkgdir/" install
|
||||
|
||||
# zsh completion
|
||||
install -Dm644 linux/completion/_$pkgbase \
|
||||
"$pkgdir/usr/share/zsh/site-functions/_$pkgbase"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
12
qupzilla/fix-color.patch
Normal file
12
qupzilla/fix-color.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ruN qt4.orig/src/plugins/AccessKeysNavigation/akn_handler.cpp qt4/src/plugins/AccessKeysNavigation/akn_handler.cpp
|
||||
--- qt4.orig/src/plugins/AccessKeysNavigation/akn_handler.cpp 2014-01-29 05:31:09.000000000 +0400
|
||||
+++ qt4/src/plugins/AccessKeysNavigation/akn_handler.cpp 2014-01-29 05:49:21.634522803 +0400
|
||||
@@ -351,7 +351,7 @@
|
||||
void AKN_Handler::makeAccessKeyLabel(const QChar &accessKey, const QWebElement &element)
|
||||
{
|
||||
QLabel* label = new QLabel(m_view.data());
|
||||
- label->setText(QString(QLatin1String("<b>%1</b>")).arg(accessKey));
|
||||
+ label->setText(QString(QLatin1String("<span style=\"color:#111111; font-weight:600;\">%1</span>")).arg(accessKey));
|
||||
|
||||
QPalette p = QToolTip::palette();
|
||||
QColor color = QColor(220, 243, 253);
|
12
qupzilla/qupzilla.install
Normal file
12
qupzilla/qupzilla.install
Normal file
@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
|
||||
update-desktop-database -q
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in New Issue
Block a user