From 091a313d509880f4b1d540c97384dac96f7ebea7 Mon Sep 17 00:00:00 2001 From: Matt Parnell Date: Mon, 19 Dec 2016 00:22:30 -0600 Subject: initial commit --- .SRCINFO | 71 ++++++++++++++++++++++++++++ .gitignore | 3 ++ PKGBUILD | 94 +++++++++++++++++++++++++++++++++++++ ungoogled-chromium.desktop | 114 +++++++++++++++++++++++++++++++++++++++++++++ ungoogled-chromium.install | 30 ++++++++++++ ungoogled-chromium.sh | 24 ++++++++++ ungoogled-chromium_128.png | Bin 0 -> 8366 bytes ungoogled-chromium_16.png | Bin 0 -> 662 bytes ungoogled-chromium_22.png | Bin 0 -> 1055 bytes ungoogled-chromium_24.png | Bin 0 -> 1022 bytes ungoogled-chromium_256.png | Bin 0 -> 21369 bytes ungoogled-chromium_32.png | Bin 0 -> 1552 bytes ungoogled-chromium_48.png | Bin 0 -> 2540 bytes ungoogled-chromium_64.png | Bin 0 -> 3634 bytes 14 files changed, 336 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD create mode 100644 ungoogled-chromium.desktop create mode 100644 ungoogled-chromium.install create mode 100644 ungoogled-chromium.sh create mode 100644 ungoogled-chromium_128.png create mode 100644 ungoogled-chromium_16.png create mode 100644 ungoogled-chromium_22.png create mode 100644 ungoogled-chromium_24.png create mode 100644 ungoogled-chromium_256.png create mode 100644 ungoogled-chromium_32.png create mode 100644 ungoogled-chromium_48.png create mode 100644 ungoogled-chromium_64.png diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..a5aa829 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,71 @@ +# Generated by mksrcinfo v8 +# Mon Dec 19 06:20:54 UTC 2016 +pkgbase = ungoogled-chromium + pkgdesc = The open-source project behind Google Chrome (Latest Snapshot) + pkgver = 55.0.2883.95 + pkgrel = 1 + url = https://github.com/Eloston/ungoogled-chromium + install = ungoogled-chromium.install + arch = x86_64 + license = BSD + makedepends = python3 + makedepends = python2 + makedepends = gperf + makedepends = yasm + makedepends = mesa + makedepends = ninja + makedepends = git + depends = gtk2 + depends = nss + depends = alsa-lib + depends = xdg-utils + depends = bzip2 + depends = libevent + depends = libxss + depends = icu + depends = libexif + depends = libgcrypt + depends = ttf-font + depends = systemd + depends = dbus + depends = flac + depends = snappy + depends = pciutils + depends = libpulse + depends = harfbuzz + depends = libsecret + depends = perl + depends = perl-file-basedir + depends = desktop-file-utils + depends = hicolor-icon-theme + depends = gconf + optdepends = kdebase-kdialog: needed for file dialogs in KDE + optdepends = gnome-keyring: for storing passwords in GNOME keyring + optdepends = kdeutils-kwalletmanager: for storing passwords in KWallet + optdepends = pepper-flash: for Pepper Flash plugin [AUR] + provides = chromium + source = git://github.com/Eloston/ungoogled-chromium + source = ungoogled-chromium.sh + source = ungoogled-chromium.desktop + source = ungoogled-chromium_16.png + source = ungoogled-chromium_22.png + source = ungoogled-chromium_24.png + source = ungoogled-chromium_32.png + source = ungoogled-chromium_48.png + source = ungoogled-chromium_64.png + source = ungoogled-chromium_128.png + source = ungoogled-chromium_256.png + md5sums = SKIP + md5sums = 374877078f924e08afe93b30d0daea09 + md5sums = 39910905d8966edff40ca6be7535fdce + md5sums = 6cd41f6e08eee03c6553603fb0b6ecd7 + md5sums = 227eac16d1e737bed42742840b950d41 + md5sums = 308eb2e0c509e12ecf33165ced9eef0d + md5sums = e9944fe09afc8495a2fbf70db810a219 + md5sums = 17856a060d1fc003447cb7a3f414be7d + md5sums = f2325d8de3d217471f029e8b59a712e3 + md5sums = 811f5de21b882cdb49618de549e017ca + md5sums = c6cf982d5ebece0b9cd64f065acd384a + +pkgname = ungoogled-chromium + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3d2325 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +ungoogled-chromium +src +pkg diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f3ade7d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,94 @@ +# Maintainer: Matt Parnell/ilikenwf +# based on chromium-snapshot-bin by det +# Contributors: Ner0, alexwizard, thotypous, jdhore, xduugu, randypenguin, bdheeman, AlK + +pkgname=ungoogled-chromium +pkgver=55.0.2883.95 +pkgrel=1 +pkgdesc="The open-source project behind Google Chrome (Latest Snapshot)" +arch=('x86_64') +url="https://github.com/Eloston/ungoogled-chromium" +license=('BSD') +depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libevent' 'libxss' 'icu' + 'libexif' 'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'flac' 'snappy' + 'pciutils' 'libpulse' 'harfbuzz' 'libsecret' + 'perl' 'perl-file-basedir' 'desktop-file-utils' 'hicolor-icon-theme' + 'gconf') +optdepends=('kdebase-kdialog: needed for file dialogs in KDE' + 'gnome-keyring: for storing passwords in GNOME keyring' + 'kdeutils-kwalletmanager: for storing passwords in KWallet' + 'pepper-flash: for Pepper Flash plugin [AUR]') +makedepends=('python3' 'python2' 'gperf' 'yasm' 'mesa' 'ninja' 'git') +provides=('chromium') +install=$pkgname.install +source=("git://github.com/Eloston/ungoogled-chromium" + "$pkgname.sh" + "$pkgname.desktop" + "$pkgname"_{16,22,24,32,48,64,128,256}.png) +md5sums=('SKIP' + '374877078f924e08afe93b30d0daea09' + '39910905d8966edff40ca6be7535fdce' + '6cd41f6e08eee03c6553603fb0b6ecd7' + '227eac16d1e737bed42742840b950d41' + '308eb2e0c509e12ecf33165ced9eef0d' + 'e9944fe09afc8495a2fbf70db810a219' + '17856a060d1fc003447cb7a3f414be7d' + 'f2325d8de3d217471f029e8b59a712e3' + '811f5de21b882cdb49618de549e017ca' + 'c6cf982d5ebece0b9cd64f065acd384a') + +# don't compress the package - we're just going to uncompress during install in a moment +PKGEXT='.pkg.tar' + +pkgver() { + cd "${srcdir}/${pkgname}" + + echo $(grep -oPm1 '([0-9]+\.?)+' version.ini) + pkgrel=$(grep -oP '\=\ [0-9]$' version.ini|sed -e 's/\=\ //g') +} + +build() { + cd "${srcdir}/${pkgname}" + + msg "Building...this will take a while..." + /usr/bin/python build.py + + msg "Extracting built tarball to properly package..." + tar xvf "${srcdir}/${pkgname}/build/${pkgname}_${pkgver}-${pkgrel}_linux_defaultcpu.tar.xz -C ${srcdir}" +} + +package() { + msg2 "Creating directory structure..." + install -d "$pkgdir"/opt/ + install -d "$pkgdir"/usr/bin/ + install -d "$pkgdir"/usr/share/applications/ + install -d "$pkgdir"/usr/share/licenses/${pkgname}/ + + msg2 "Moving contents..." + # Main script + install -m755 "${srcdir}/$pkgname.sh" "${pkgdir}/usr/bin/$pkgname" + + # Desktop + install -m644 "${srcdir}/$pkgname.desktop" "$pkgdir/usr/share/applications/" + + # Icons + for i in 16 22 24 32 48 64 128 256; do + install -Dm644 ${pkgname}_${i}.png "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png + done + + cd "${pkgname}_${pkgver}-${pkgrel}" + rm *.png &> /dev/null + + # Man page + gzip -9 chrome.1 + install -m644 chrome.1.gz "$pkgdir"/usr/share/man/man1/$pkgname.1.gz + rm chrome.1 chrome.1.gz + + cd "${srcdir}/${pkgname}" + + # License + install -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/" + + msg2 "Installing main directory..." + mv "${srcdir}/${pkgname}_${pkgver}-${pkgrel}" "$pkgdir/opt/${pkgname}" +} diff --git a/ungoogled-chromium.desktop b/ungoogled-chromium.desktop new file mode 100644 index 0000000..cd00bea --- /dev/null +++ b/ungoogled-chromium.desktop @@ -0,0 +1,114 @@ +[Desktop Entry] +Version=1.0 +Name=Ungoogled Chromium +# Only KDE 4 seems to use GenericName, so we reuse the KDE strings. +# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. +GenericName=Web Browser +GenericName[ar]=متصفح الشبكة +GenericName[bg]=Уеб браузър +GenericName[ca]=Navegador web +GenericName[cs]=WWW prohlížeč +GenericName[da]=Browser +GenericName[de]=Web-Browser +GenericName[el]=Περιηγητής ιστού +GenericName[en_GB]=Web Browser +GenericName[es]=Navegador web +GenericName[et]=Veebibrauser +GenericName[fi]=WWW-selain +GenericName[fr]=Navigateur Web +GenericName[gu]=વેબ બ્રાઉઝર +GenericName[he]=דפדפן אינטרנט +GenericName[hi]=वेब ब्राउज़र +GenericName[hu]=Webböngésző +GenericName[it]=Browser Web +GenericName[ja]=ウェブブラウザ +GenericName[kn]=ಜಾಲ ವೀಕ್ಷಕ +GenericName[ko]=웹 브라우저 +GenericName[lt]=Žiniatinklio naršyklė +GenericName[lv]=Tīmekļa pārlūks +GenericName[ml]=വെബ് ബ്രൌസര്‍ +GenericName[mr]=वेब ब्राऊजर +GenericName[nb]=Nettleser +GenericName[nl]=Webbrowser +GenericName[pl]=Przeglądarka WWW +GenericName[pt]=Navegador Web +GenericName[pt_BR]=Navegador da Internet +GenericName[ro]=Navigator de Internet +GenericName[ru]=Веб-браузер +GenericName[sl]=Spletni brskalnik +GenericName[sv]=Webbläsare +GenericName[ta]=இணைய உலாவி +GenericName[th]=เว็บเบราว์เซอร์ +GenericName[tr]=Web Tarayıcı +GenericName[uk]=Навігатор Тенет +GenericName[zh_CN]=网页浏览器 +GenericName[zh_HK]=網頁瀏覽器 +GenericName[zh_TW]=網頁瀏覽器 +# Not translated in KDE, from Epiphany 2.26.1-0ubuntu1. +GenericName[bn]=ওয়েব ব্রাউজার +GenericName[fil]=Web Browser +GenericName[hr]=Web preglednik +GenericName[id]=Browser Web +GenericName[or]=ଓ୍ବେବ ବ୍ରାଉଜର +GenericName[sk]=WWW prehliadač +GenericName[sr]=Интернет прегледник +GenericName[te]=మహాతల అన్వేషి +GenericName[vi]=Bộ duyệt Web +# Gnome and KDE 3 uses Comment. +Comment=Access the Internet +Comment[ar]=الدخول إلى الإنترنت +Comment[bg]=Достъп до интернет +Comment[bn]=ইন্টারনেটটি অ্যাক্সেস করুন +Comment[ca]=Accedeix a Internet +Comment[cs]=Přístup k internetu +Comment[da]=Få adgang til internettet +Comment[de]=Internetzugriff +Comment[el]=Πρόσβαση στο Διαδίκτυο +Comment[en_GB]=Access the Internet +Comment[es]=Accede a Internet. +Comment[et]=Pääs Internetti +Comment[fi]=Käytä internetiä +Comment[fil]=I-access ang Internet +Comment[fr]=Accéder à Internet +Comment[gu]=ઇંટરનેટ ઍક્સેસ કરો +Comment[he]=גישה אל האינטרנט +Comment[hi]=इंटरनेट तक पहुंच स्थापित करें +Comment[hr]=Pristup Internetu +Comment[hu]=Internetelérés +Comment[id]=Akses Internet +Comment[it]=Accesso a Internet +Comment[ja]=インターネットにアクセス +Comment[kn]=ಇಂಟರ್ನೆಟ್ ಅನ್ನು ಪ್ರವೇಶಿಸಿ +Comment[ko]=인터넷 연결 +Comment[lt]=Interneto prieiga +Comment[lv]=Piekļūt internetam +Comment[ml]=ഇന്റര്‍‌നെറ്റ് ആക്‌സസ് ചെയ്യുക +Comment[mr]=इंटरनेटमध्ये प्रवेश करा +Comment[nb]=Gå til Internett +Comment[nl]=Verbinding maken met internet +Comment[or]=ଇଣ୍ଟର୍ନେଟ୍ ପ୍ରବେଶ କରନ୍ତୁ +Comment[pl]=Skorzystaj z internetu +Comment[pt]=Aceder à Internet +Comment[pt_BR]=Acessar a internet +Comment[ro]=Accesaţi Internetul +Comment[ru]=Доступ в Интернет +Comment[sk]=Prístup do siete Internet +Comment[sl]=Dostop do interneta +Comment[sr]=Приступите Интернету +Comment[sv]=Gå ut på Internet +Comment[ta]=இணையத்தை அணுகுதல் +Comment[te]=ఇంటర్నెట్‌ను ఆక్సెస్ చెయ్యండి +Comment[th]=เข้าถึงอินเทอร์เน็ต +Comment[tr]=İnternet'e erişin +Comment[uk]=Доступ до Інтернету +Comment[vi]=Truy cập Internet +Comment[zh_CN]=访问互联网 +Comment[zh_HK]=連線到網際網路 +Comment[zh_TW]=連線到網際網路 +Exec=chromium-snapshot-bin %U +Terminal=false +Icon=chromium-snapshot-bin +Type=Application +Categories=GTK;Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https; +StartupWMClass=/usr/bin/ungoogled-chromium diff --git a/ungoogled-chromium.install b/ungoogled-chromium.install new file mode 100644 index 0000000..efde0c1 --- /dev/null +++ b/ungoogled-chromium.install @@ -0,0 +1,30 @@ +# Colored makepkg-like functions +msg_blue() { + printf "${blue}==>${bold} ${1}${all_off}\n" +} + +note() { + printf "${yellow}==>${bold} ${1}${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +post_install() { + note "Pepper Flash is now auto-detected from: /usr/lib/PepperFlash/ (pepper-flash [AUR]) + echo + + note "Custom flags should be put directly in: ~/.config/chromium-flags.conf + (CHROMIUM_FLAGS is deprecated.)" + echo + + note "The launcher is called: 'ungoogled-chromium'" +} + + +post_upgrade() { + post_install +} + diff --git a/ungoogled-chromium.sh b/ungoogled-chromium.sh new file mode 100644 index 0000000..55be7eb --- /dev/null +++ b/ungoogled-chromium.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Allow users to override command-line options +if [[ -f ~/.config/chromium-flags.conf ]]; then + CHROMIUM_USER_FLAGS="$(cat ~/.config/chromium-flags.conf)" +fi + +# Detect Pepper Flash +if [[ -f /usr/lib/PepperFlash/libpepflashplayer.so ]]; then + PepperVer="$(grep 'version' /usr/lib/PepperFlash/manifest.json | cut -d '"' -f4)" + CHROMIUM_USER_FLAGS+=" --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=$PepperVer" +fi + +# Let the wrapped binary know that it has been run through the wrapper. +export CHROME_WRAPPER="$(readlink -f $0)" +export CHROME_DESKTOP="$0.desktop" + +# Google API keys: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/chromium +export GOOGLE_API_KEY=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM +export GOOGLE_DEFAULT_CLIENT_ID=413772536636.apps.googleusercontent.com +export GOOGLE_DEFAULT_CLIENT_SECRET=0ZChLK6AxeA3Isu96MkwqDR4 + +# Launch +exec /opt/ungoogled-chromium/chrome $CHROMIUM_USER_FLAGS $@ diff --git a/ungoogled-chromium_128.png b/ungoogled-chromium_128.png new file mode 100644 index 0000000..9f88fb1 Binary files /dev/null and b/ungoogled-chromium_128.png differ diff --git a/ungoogled-chromium_16.png b/ungoogled-chromium_16.png new file mode 100644 index 0000000..77ac0f3 Binary files /dev/null and b/ungoogled-chromium_16.png differ diff --git a/ungoogled-chromium_22.png b/ungoogled-chromium_22.png new file mode 100644 index 0000000..33c2256 Binary files /dev/null and b/ungoogled-chromium_22.png differ diff --git a/ungoogled-chromium_24.png b/ungoogled-chromium_24.png new file mode 100644 index 0000000..e6d9e56 Binary files /dev/null and b/ungoogled-chromium_24.png differ diff --git a/ungoogled-chromium_256.png b/ungoogled-chromium_256.png new file mode 100644 index 0000000..96ee230 Binary files /dev/null and b/ungoogled-chromium_256.png differ diff --git a/ungoogled-chromium_32.png b/ungoogled-chromium_32.png new file mode 100644 index 0000000..1fd7dd1 Binary files /dev/null and b/ungoogled-chromium_32.png differ diff --git a/ungoogled-chromium_48.png b/ungoogled-chromium_48.png new file mode 100644 index 0000000..94f0d1c Binary files /dev/null and b/ungoogled-chromium_48.png differ diff --git a/ungoogled-chromium_64.png b/ungoogled-chromium_64.png new file mode 100644 index 0000000..c8f9c19 Binary files /dev/null and b/ungoogled-chromium_64.png differ -- cgit v1.2.3