# Maintainer: Étienne Deparis pkgname=cliqz _pkgname=browser-f pkgver=1.17.1 pkgrel=2 _cqzbuildid=20171130123422 pkgdesc="Firefox-based privacy aware web browser, build from sources" arch=(i686 x86_64) url="https://cliqz.com/" license=(MPL2) depends=(gtk3 gtk2 mozilla-common libxt startup-notification mime-types dbus-glib ffmpeg nss hunspell sqlite ttf-font libpulse icu libevent) makedepends=(unzip zip diffutils python2 yasm mesa imake gconf inetutils xorg-server-xvfb autoconf2.13 rust clang llvm libnotify) conflicts=(cliqz-bin) source=("https://github.com/cliqz-oss/browser-f/archive/$pkgver.tar.gz" wifi-disentangle.patch wifi-fix-interface.patch no-plt.diff 0001-Bug-1360278-Add-preference-to-trigger-context-menu-o.patch 0002-Bug-1419426-Implement-browserSettings.contextMenuSho.patch) sha256sums=('a13c32904e8e7e15fe12283ada81ad09f2f9c1c86476776beb43f346861b54ac' 'f068b84ad31556095145d8fefc012dd3d1458948533ed3fff6cbc7250b6e73ed' 'e98a3453d803cc7ddcb81a7dc83f883230dd8591bdf936fc5a868428979ed1f1' 'ea8e1b871c0f1dd29cdea1b1a2e7f47bf4713e2ae7b947ec832dba7dfcc67daa' 'd45c97782a77e7c5ebacfa7b983019f6bb831794d3c707abbe3bb01cddb80f72' '52c56c33f7ab98232d9c0644965f149da9b7266f607c84b80aca8a5534cee3bb') options=(!emptydirs !makeflags !strip) prepare() { cd "$srcdir/${_pkgname}-$pkgver/mozilla-release" # Do not try to upload anything anywhere sed -i 's/ifeq ($(OS_ARCH), Linux)/ifeq ($(OS_ARCH), Nope)/' toolkit/mozapps/installer/upload-files.mk # Patch future desktop file, which does not seems to be embed sed -i "s/@MOZ_APP_DISPLAYNAME@/$pkgname/g" toolkit/mozapps/installer/linux/rpm/mozilla.desktop sed -i "s/@MOZ_APP_NAME@/$pkgname/g" toolkit/mozapps/installer/linux/rpm/mozilla.desktop sed -i "s|^Exec=${pkgname}$|Exec=/usr/lib/${pkgname}/${pkgname} %u|" toolkit/mozapps/installer/linux/rpm/mozilla.desktop cat >> toolkit/mozapps/installer/linux/rpm/mozilla.desktop < browser/google-desktop-api.key # Mozilla API keys (see https://location.services.mozilla.com/api) # Note: These are for Arch Linux use ONLY. For your own distribution, please # get your own set of keys. Feel free to contact heftig@archlinux.org for # more information. echo -n "16674381-f021-49de-8622-3021c5942aff" > browser/mozilla-desktop-geoloc-api.key cat >> browser/config/cliqz-release.mozconfig <