desktop/qupzilla/PKGBUILD

61 lines
2.2 KiB
Bash
Raw Normal View History

2014-05-13 09:12:01 +08:00
_pkgname=QupZilla
2015-10-31 20:33:01 +08:00
pkgname='qupzilla'
2016-06-09 11:15:21 +08:00
pkgver=2.0.1
pkgrel=1
2016-04-02 21:24:24 +08:00
pkgdesc="A very fast open source browser based on WebEngine core"
2012-02-02 10:07:43 +08:00
url="http://www.qupzilla.com"
arch=('x86_64')
2011-10-18 04:35:31 +08:00
license=('GPL3')
2015-10-31 20:33:01 +08:00
makedepends=('qt5-tools' 'kwallet')
2016-04-02 21:24:24 +08:00
depends=('qt5-webengine>=5.6.0' 'qt5-script')
2015-10-31 20:33:01 +08:00
optdepends=('bash-completion: bash completion support'
'kwallet: kf5 kwallet integration')
install=${pkgname}.install
2016-04-02 21:24:24 +08:00
categories=('network')
screenshot='http://www.qupzilla.com/screens/kde.png'
source=("https://github.com/QupZilla/qupzilla/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.xz"
2015-10-30 02:44:46 +08:00
'0001-branded-speeddial.patch'
'start-white.png')
2016-06-09 11:15:21 +08:00
sha1sums=('db05bb206999b782df4d6ae96c6df24cba81944a'
2016-04-02 21:24:24 +08:00
'7fbbd3b732e27154ab375f736c167d84a83619d7'
2015-10-30 02:44:46 +08:00
'6ec67993bda3054d4210cc08177b124f873774e3')
2011-10-18 04:35:31 +08:00
2013-09-02 15:44:49 +08:00
prepare() {
2014-12-15 20:06:22 +08:00
msg 'Applying browserUI patch...'
cd ${srcdir}/${_pkgname}-${pkgver}/src/lib/app/
sed -e 's|"qupzilla:start"|"https://chakraos.org/?welcome"|' \
-e 's|"showStatusBar", true|"showStatusBar", false|' \
-e 's|"showMenubar", true|"showMenubar", false|g' -i browserwindow.cpp
cd ${srcdir}/${_pkgname}-${pkgver}/src/lib/plugins/
sed -e 's|"background", QString()|"file:///usr/share/pixmaps/start-white.png", QString()|' \
-e 's|"backsize", "auto"|"backsize", "contain"|' -i speeddial.cpp
2016-04-01 02:57:43 +08:00
cd ${srcdir}/${_pkgname}-${pkgver}/
2016-04-17 23:09:03 +08:00
2016-04-01 02:57:43 +08:00
patch -Np1 -i ${srcdir}/0001-branded-speeddial.patch
2016-04-17 23:09:03 +08:00
2014-12-15 20:06:22 +08:00
msg 'Applying preference patch'
cd ${srcdir}/${_pkgname}-${pkgver}/src/lib/preferences/
sed -e 's|"homepage", QUrl(QSL("qupzilla:start"))|"homepage", QUrl(QSL("https://chakraos.org/?welcome"))|' \
-e 's|"showStatusBar", true|"showStatusBar", false|g' -i preferences.cpp
2014-12-15 20:06:22 +08:00
msg 'Applying search engine patch...'
cd ${srcdir}/${_pkgname}-${pkgver}/src/lib/opensearch/
2015-11-21 22:12:07 +08:00
sed 's,\?q=\%s\&t=qupzilla,\?q=\%s\&t=chakra,g' -i searchenginesmanager.cpp
}
2013-09-02 15:44:49 +08:00
build() {
2013-09-02 15:44:49 +08:00
export USE_WEBGL="true"
2014-01-07 23:04:11 +08:00
export KDE_INTEGRATION="true"
2014-12-15 20:06:22 +08:00
export ENABLE_OPACITY_EFFECT="true"
2015-10-31 20:33:01 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}/"
2015-01-27 17:30:16 +08:00
/usr/lib/qt5/bin/qmake
2013-09-02 15:44:49 +08:00
make
}
2016-04-01 02:57:43 +08:00
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
install -Dm 644 "${srcdir}/start-white.png" "${pkgdir}/usr/share/pixmaps/start-white.png"
}