make-icecat 2.05 KB
Newer Older
1 2
#!/bin/sh
#
Ruben Rodriguez committed
3
#    Copyright (C) 2015-2017  Ruben Rodriguez <ruben@trisquel.info>
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#
#    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
#

20
VERSION=3
21
EXTERNAL='deb-src http://devel.trisquel.info/repos/packages/icecat/ GNU main'
22
SIGNKEY="D7E04784"
23
REPOKEY="3C76EED7D7E04784"
24 25 26 27 28

. ./config

cat << EOF >> browser/app/profile/icecat.js
// Preferences for the Get Add-ons panel
29 30
pref ("extensions.webservice.discoverURL", "https://trisquel.info/browser-plain");
pref ("extensions.getAddons.search.url", "https://trisquel.info/browser-plain");
31 32

// PFS url
33 34
pref("pfs.datasource.url", "https://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%");
pref("pfs.filehint.url", "https://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%");
35 36 37 38 39 40 41 42 43 44 45 46

// I'm feeling Ducky.
pref("keyword.URL", "https://duckduckgo.com/html?t=trisquel&q=!+");
pref("browser.search.defaultenginename", "DuckDuckGo");
pref("browser.search.order.extra.duckduckgo", "DuckDuckGo");
EOF

find . -type f |grep duckduckgo |xargs sed -i '/value/s/gnu/trisquel/'

cat << EOF > debian/distribution.ini
[Global]
id=trisquel
47
version=1.0
48 49 50 51 52 53 54 55 56 57
about=IceCat for Trisquel GNU/Linux

[Preferences]
app.distributor = "trisquel"
app.distributor.channel = "trisquel"
app.partner.ubuntu = "trisquel"
EOF

cp $DATA/searchplugins/* debian/searchplugins

58 59
mv browser/locales/searchplugins/google-nocodes.xml browser/locales/searchplugins/google.xml

60 61 62
changelog "Customized for Trisquel"

compile