cutegram: build

This commit is contained in:
Chaoting Liu 2015-10-09 14:56:10 +00:00
parent 617f0894c5
commit dc1792cc0d
2 changed files with 35 additions and 4 deletions

View File

@ -0,0 +1,28 @@
From 473676639868b5704fb6f1733bd48871a218f1bd Mon Sep 17 00:00:00 2001
From: Chaoting Liu <rainman59118@gmail.com>
Date: Fri, 9 Oct 2015 13:52:49 +0000
Subject: [PATCH 1/1] Add Chakra-specific search option
---
Cutegram/cutegram.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Cutegram/cutegram.cpp b/Cutegram/cutegram.cpp
index 9321800..2c8d7ef 100644
--- a/Cutegram/cutegram.cpp
+++ b/Cutegram/cutegram.cpp
@@ -179,9 +179,9 @@ Cutegram::Cutegram(QObject *parent) :
p->translator = new QTranslator(this);
p->theme = AsemanApplication::settings()->value("General/theme","Abrisham.qml").toString();
p->emojisTheme = AsemanApplication::settings()->value("General/emojisTheme", "twitter").toString();
- p->searchEngine = AsemanApplication::settings()->value("General/searchEngine","https://duckduckgo.com/?q=").toString();
+ p->searchEngine = AsemanApplication::settings()->value("General/searchEngine","https://duckduckgo.com/?t=chakra&q=").toString();
- p->searchEngines = QStringList() << "https://duckduckgo.com/?q=" << "https://google.com/?q=" << "https://bing.com/?q=";
+ p->searchEngines = QStringList() << "https://duckduckgo.com/?t=chakra&q=" << "https://duckduckgo.com/?q=" << "https://google.com/?q=" << "https://bing.com/?q=";
#ifdef Q_OS_ANDROID
p->translationsPath = "assets:/files/translations";
--
2.4.1

View File

@ -1,7 +1,7 @@
pkgname=cutegram
_pkgname=Cutegram
pkgver=2.7.0
pkgrel=1
pkgrel=2
pkgdesc="A different telegram client from Aseman team"
arch=('x86_64')
url="http://aseman.co/en/products/cutegram/"
@ -9,14 +9,17 @@ license=('GPL')
depends=('qt5-base' 'qt5-declarative' 'qt5-multimedia' 'qt5-quick1'
'qt5-graphicaleffects' 'qt5-quickcontrols' 'qt5-webengine' 'qt5-imageformats'
'gstreamer' 'libqtelegram-ae>=6.0' 'telegramqml')
source=("https://github.com/Aseman-Land/Cutegram/archive/v$pkgver-stable.tar.gz")
sha512sums=('b6a8b3f75936f71ba913e86b4ede5bb8ee0339dae70bc86faafc10b93cec2f3d06796f8b042e8909748c50397fc31c884a80b17825c8a86c1f14427f90a3df86')
source=("https://github.com/Aseman-Land/Cutegram/archive/v$pkgver-stable.tar.gz"
'0001-Add-Chakra-specific-search-option.patch')
sha1sums=('53008ca4c61e06f211b0948dc5733b77e30d6945'
'bcd6d726359a83619a9743283a58990e055556f5')
prepare() {
cd "${srcdir}/${_pkgname}-$pkgver-stable"
mkdir -p build
# TODO: Add chakra-specific search engine option
# Add chakra-specific search engine option
patch -Np1 -i ${srcdir}/0001-Add-Chakra-specific-search-option.patch
}
build() {