falkon: 3.0.0 added to repository, replaces qupzilla

This commit is contained in:
Francesco Marinucci 2018-02-28 22:15:38 +00:00
parent c015b9fcc7
commit 3ae05e7b6d
5 changed files with 269 additions and 0 deletions

View File

@ -0,0 +1,15 @@
--- a/src/lib/plugins/speeddial.cpp 2018-02-28 14:59:36.000000000 +0100
+++ b/src/lib/plugins/speeddial.cpp 2018-02-28 15:10:00.869714665 +0100
@@ -66,7 +66,11 @@
allPages = "url:\"https:/kde.org\"|title:\"KDE Community Home\";"
"url:\"https://phabricator.kde.org/source/falkon/\"|title:\"Falkon Git\";"
"url:\"https://bugs.kde.org/describecomponents.cgi?product=Falkon\"|title:\"Falkon Bug Tracker\";"
- "url:\"https://duckduckgo.com\"|title:\"DuckDuckGo\";";
+ "url:\"https://www.chakralinux.org\"|title:\"The Chakra Project\";"
+ "url:\"https://community.chakralinux.org\"|title:\"Forums\";"
+ "url:\"https://webchat.freenode.net/?channels=chakra\"|title:\"IRC\";"
+ "url:\"http://www.youtube.com/html5\"|title:\"YouTube-html5\";"
+ "url:\"https://duckduckgo.com/?t=chakra\"|title:\"DuckDuckGo\";";
}
changed(allPages);

69
falkon/PKGBUILD Normal file
View File

@ -0,0 +1,69 @@
pkgname='falkon'
pkgver=3.0.0
pkgrel=1
pkgdesc="A very fast open source browser based on QtWebEngine"
url="https://github.com/KDE/falkon"
arch=('x86_64')
license=('GPL3')
depends=('qt5-webengine' 'qt5-x11extras' 'qt5-svg' 'hicolor-icon-theme')
makedepends=('qt5-tools' 'kwallet' 'lcms2' 'extra-cmake-modules')
optdepends=('bash-completion: bash completion support'
'kwallet: kf5 kwallet integration')
conflicts=('qupzilla' 'qupzilla-git' 'qupzilla-qt4')
replaces=('qupzilla' 'qupzilla-git' 'qupzilla-qt4')
install=${pkgname}.install
categories=('network')
source=("http://download.kde.org/stable/$pkgname/3.0/src/$pkgname-$pkgver.tar.xz"
'0001-branded-speeddial.patch'
'start-white.png'
'falkon.desktop')
sha1sums=('ecc07f37e5e902aba11c049ca50a05841cfeca17'
'0045ac3a37a6a16347acf82046b63cd772bbd377'
'6ec67993bda3054d4210cc08177b124f873774e3'
'30af0401f97e6465169bae2089d2a8626e08cadd')
prepare() {
msg 'Applying browserUI patch...'
cd $pkgname-$pkgver/src/lib/app/
sed -e 's|"falkon:start"|"https://www.chakralinux.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
cd $srcdir/$pkgname-$pkgver
patch -Np1 -i ../0001-branded-speeddial.patch
msg 'Applying preference patch'
cd src/lib/preferences/
sed -e 's|"homepage", QUrl(QSL("falkon:start"))|"homepage", QUrl(QSL("https://www.chakralinux.org/?welcome"))|' \
-e 's|"showStatusBar", true|"showStatusBar", false|g' -i preferences.cpp
msg 'Applying search engine patch...'
cd ../opensearch/
sed 's,\?q=\%s\&t=qupzilla,\?q=\%s\&t=chakra,g' -i searchenginesmanager.cpp
}
build() {
export USE_WEBGL="true"
export ENABLE_OPACITY_EFFECT="true"
cd $pkgname-$pkgver
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INTEGRATION=ON \
-DKDE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DDISABLE_UPDATES_CHECK=ON
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
install -Dm 644 ../start-white.png $pkgdir/usr/share/pixmaps/start-white.png
# zsh completion
install -Dm644 linux/completion/_$pkgname \
$pkgdir/usr/share/zsh/site-functions/_$pkgname
}

173
falkon/falkon.desktop Normal file
View File

@ -0,0 +1,173 @@
[Desktop Entry]
Name=QupZilla
Name[ka]=
Name[sr]=Капзила
Name[sr@ijekavian]=Капзила
Name[fa]=کوپزیلا
Name[ar]=كَبزيلّا
Type=Application
Icon=qupzilla
Categories=Network;WebBrowser;
Comment=A fast and secure web browser
Comment[ca]=Un navegador ràpid i segur
Comment[cs]=Rychlý a bezpečný webový prohlížeč
Comment[de]=Ein schneller und sicherer Web Browser
Comment[eu]=Web nabigatzaile azkar eta seguru bat
Comment[el]=Ένας γρήγορος και ασφαλής περιηγητής ιστού
Comment[es]=Un navegador web rápido y seguro
Comment[fr]=Un navigateur Internet rapide et sûr
Comment[he]=דפדפן רשת מהיר ומאובטח
Comment[it]=Un browser web veloce e sicuro
Comment[id]=Peramban web cepat dan aman
Comment[ka]=
Comment[nl]=Een snelle en veilige webbrowser
Comment[pl]=Szybka i bezpieczna przeglądarka internetowa
Comment[pt]=Um navegador web rápido e seguro
Comment[ro]=Un browser rapid și sigur
Comment[ru]=Быстрый и безопасный веб-браузер
Comment[sk]=Rýchly a bezpečný webový prehliadač
Comment[sr]=Брз и сигуран веб прегледач
Comment[sr@ijekavian]=Брз и сигуран веб прегледач
Comment[sr@ijekavianlatin]=Brz i siguran veb pregledač
Comment[sr@latin]=Brz i siguran veb pregledač
Comment[sv]=En snabb och säker webbläsare
Comment[uk]=Швидкий і безпечний веб-переглядач
Comment[zh_TW]=
Comment[zh_CN]=
Comment[ja]=
Comment[fa]=مرورگر سبک و ایمن وب
Comment[ar]=متصفح وِب سريع وآمن
Comment[fi]=Nopea ja turvallinen WWW-selain
GenericName=Web Browser
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[de]=Web Browser
GenericName[el]=Περιηγητής ιστού
GenericName[es]=Navegador Web
GenericName[fr]=Navigateur Internet
GenericName[id]=Peramban Web
GenericName[it]=Browser Web
GenericName[he]=דפדפן רשת
GenericName[ka]=
GenericName[nl]=Webbrowser
GenericName[pl]=Przeglądarka Internetowa
GenericName[pt]=Navegador web
GenericName[pt_BR]=Navegador web
GenericName[ro]=Browser Web
GenericName[ru]=Веб-Браузер
GenericName[sk]=Webový prehliadač
GenericName[sr]=Веб прегледач
GenericName[sr@ijekavian]=Веб прегледач
GenericName[sr@ijekavianlatin]=Veb pregledač
GenericName[sr@latin]=Veb pregledač
GenericName[sv]=Webbläsare
GenericName[uk]=Веб-переглядач
GenericName[zh_TW]=
GenericName[zh_CN]=
GenericName[ja]=Web
GenericName[fa]=مرورگر وب
GenericName[ar]=متصفح وِب
GenericName[fi]=WWW-selain
Exec=qupzilla --disable-gpu %u
MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;application/x-mimearchive;
Terminal=false
Actions=NewTab;NewWindow;PrivateBrowsing;
[Desktop Action NewTab]
Name=Open new tab
Name[ca]=Obre una nova pestanya
Name[cs]=Otevřít nový panel
Name[de]=Neuen Tab öffnen
Name[eu]=Ireki hegats berria
Name[el]=Άνοιγμα νέας καρτέλας
Name[es]=Abrir nueva pestaña
Name[fr]=Ouvrir un nouvel onglet
Name[it]=Apri una nuova scheda
Name[he]=פתח כרטיסייה חדשה
Name[id]=Buka tab baru
Name[ka]=
Name[nl]=Open nieuw tabblad
Name[pl]=Otwórz nową kartę
Name[pt]=Abrir novo separador
Name[pt_BR]=Abrir nova guia
Name[ru]=Открыть новую вкладку
Name[sk]=Otvoriť novú kartu
Name[sr]=Отвори у новом језичку
Name[sr@ijekavian]=Отвори у новом језичку
Name[sr@ijekavianlatin]=Otvori u novom jezičku
Name[sr@latin]=Otvori u novom jezičku
Name[sv]=Öppna ny flik
Name[uk]=Відкрити нову вкладку
Name[zh_TW]=
Name[zh_CN]=
Name[ja]=
Name[fa]=بازکردن برگه تازه
Name[ar]=افتح لسانًا جديدًا
Name[fi]=Avaa uusi välilehti
Exec=qupzilla --disable-gpu --new-tab
[Desktop Action NewWindow]
Name=Open new window
Name[ca]=Obre una nova finestra
Name[cs]=Otevřít nové okno
Name[de]=Neues Fenster öffnen
Name[eu]=Ireki leiho berria
Name[el]=Άνοιγμα νέου παράθυρου
Name[es]=Abrir nueva ventana
Name[fr]=Ouvrir une nouvelle fenêtre
Name[it]=Apri una nuova finestra
Name[he]=פתח חלון חדש
Name[id]=Buka jendela baru
Name[ka]=
Name[nl]=Nieuw venster openen
Name[pl]=Otwórz nowe okno
Name[pt]=Abrir nova janel
Name[pt_BR]=Abrir nova janela
Name[ru]=Открыть в новом окне
Name[sk]=Otvoriť nové okno
Name[sr]=Отвори у новом прозору
Name[sr@ijekavian]=Отвори у новом прозору
Name[sr@ijekavianlatin]=Otvori u novom prozoru
Name[sr@latin]=Otvori u novom prozoru
Name[sv]=Öppna nytt fönster
Name[uk]=Відкрити нове вікно
Name[zh_TW]=
Name[zh_CN]=
Name[ja]=
Name[fa]=بازکردن پنجره تازه
Name[ar]=افتح نافذة جديدة
Name[fi]=Avaa uusi ikkuna
Exec=qupzilla --disable-gpu --new-window
[Desktop Action PrivateBrowsing]
Name=Start private browsing
Name[ca]=Inicia la navegació privada
Name[cs]=Spustit soukromé prohlížení
Name[de]=Privaten Modus starten
Name[eu]=Hasi nabigazio pribatua
Name[el]=Έναρξη ιδιωτικής περιήγησης
Name[es]=Iniciar navegación privada
Name[fr]=Commencer la navigation privée
Name[it]=Avvia Navigazione Anonima
Name[he]=התחל גלישה פרטית
Name[id]=Mulai perambahan privat
Name[ka]=
Name[nl]=Start incognito browsen
Name[pl]=Uruchom w trybie prywatnym
Name[pt]=Iniciar navegação privada
Name[pt_BR]=Iniciar navegação privada
Name[ru]=Запустить в режиме приватного просмотра
Name[sk]=Spustiť súkromné prehliadanie
Name[sr]=Покрени приватно прегледање
Name[sr@ijekavian]=Покрени приватно прегледање
Name[sr@ijekavianlatin]=Pokreni privatno pregledanje
Name[sr@latin]=Pokreni privatno pregledanje
Name[sv]=Starta privat surfning
Name[uk]=Запустити Приватний перегляд
Name[zh_TW]=
Name[zh_CN]=
Name[ja]=
Name[fa]=مرور خصوصی وب
Name[ar]=ابدأ التصفح خِفيةً
Name[fi]=Aloita yksityinen selaus
Exec=qupzilla --disable-gpu --private-browsing

12
falkon/falkon.install Normal file
View 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
}

BIN
falkon/start-white.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB