ungoogled-chromium.sh 1.11 KB
Newer Older
1 2 3 4 5 6 7 8
#!/bin/sh -x

# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"

PRODUCT=ungoogled-chromium

9
. $(dirname $0)/common-chromium-browser.sh
10

11
add_bin_link_command $PRODUCT $PRODUCTDIR/chrome-wrapper
12

13 14 15 16
use_system_xdg

install_file $PRODUCTDIR/product_logo_48.png /usr/share/pixmaps/$PRODUCT.png

17 18 19
#fix duplication .desktop file
subst "s|chromium-devel|ungoogled-chromium|" $BUILDROOT/opt/$PRODUCT/chrome-wrapper

Vitaly Lipatov's avatar
Vitaly Lipatov committed
20
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
[Desktop Entry]
Version=1.0
Type=Application
Name=Ungoogled Chromium Web Browser
Name[ru]=Веб-браузер Ungoogled Chromium
Comment=Google Chromium, sans integration with Google
Icon=$PRODUCT
Exec=$PRODUCT %u
Categories=GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
Terminal=false
GenericName=Ungoogle Chromium Web Browser
GenericName[ru]=Веб-браузер Ungoogled Chromium
EOF

set_alt_alternatives 65

38
[ -f .$PRODUCTDIR/chrome_sandbox ] && move_file $PRODUCTDIR/chrome_sandbox $PRODUCTDIR/chrome-sandbox
39
fix_chrome_sandbox
40

41
add_chromium_deps