Newer
Older
#!/bin/sh
#
# Copyright (C) 2011 Rubén Rodríguez <ruben@trisquel.info>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
EXTERNAL='deb-src http://ppa.launchpad.net/midori/ppa/ubuntu $UPSTREAM main'
. ./config
# https://trisquel.info/en/issues/7753
echo "NoDisplay=true" >> data/midori-private.desktop.in
#sed '/midori-private/d' -i ./po/POTFILES.in
#sed '/Private Shortcut/,1000d' -i data/midori.desktop.in
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
rm debian/patches -rf
cat << EOF > debian/Trisquel-config
[settings]
toolbar-style=MIDORI_TOOLBAR_SMALL_ICONS
toolbar-items=TabNew,Back,Forward,ReloadStop,Separator,Homepage,Location,Separator,Search,
homepage=http://trisquel.info/welcome
location-entry-search=https://duckduckgo.com/?t=trisquel&q=!+%s
show-menubar=true
[extensions]
libtoolbar-editor.so=true
EOF
cat << EOF > debian/config/Trisquel.h
#define DEBIAN_DISTRO_DEFAULT_HOMEPAGE "http://trisquel.info/welcome"
#define DEBIAN_WWW_ALTERNATIVES_PRIORITY 39
EOF
cat << EOF > data/search
[Duck Duck GO SSL]
name=Duck Duck GO SSL
text=DDG Web Search
uri=https://duckduckgo.com/?t=trisquel&q=%s
icon=
token=d
[Duck Duck GO]
name=Duck Duck GO
text=DDG Web Search
uri=http://duckduckgo.com/?t=trisquel&q=%s
icon=
token=
[Google]
name=Google
text=Web Search
uri=http://www.google.com/search?q=%s
icon=
token=g
[Trisquel]
name=Trisquel
text=Search Trisquel Site
uri=http://trisquel.info/search/node/%s
icon=
token=t
[Trisquel Packages]
name=Trisquel Packages
text=Search Trisquel Packages
uri=http://packages.trisquel.info/%s
icon=
token=tp
[Wikipedia]
name=Wikipedia
text=The free encyclopedia
uri=http://en.wikipedia.org/wiki/Special:Search/%s
icon=
token=wp
[The Free Dictionary]
name=The Free Dictionary
text=Dictionary, Encyclopedia and Thesaurus
uri=http://www.thefreedictionary.com/%s
icon=
token=fd
EOF
changelog "Search engines configured for Trisquel"
compile