From 60eee731d2b78ca4f52d2b311b19d65fa93f357c Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Wed, 12 Dec 2018 16:22:49 +0100 Subject: libre-testing/icecat: added icecat-60 to libre-testing --- libre-testing/icecat/PKGBUILD | 213 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 213 insertions(+) create mode 100644 libre-testing/icecat/PKGBUILD (limited to 'libre-testing/icecat/PKGBUILD') diff --git a/libre-testing/icecat/PKGBUILD b/libre-testing/icecat/PKGBUILD new file mode 100644 index 000000000..463ff67a9 --- /dev/null +++ b/libre-testing/icecat/PKGBUILD @@ -0,0 +1,213 @@ +# Maintainer (Arch:firefox): Jan Alexander Steffens (heftig) +# Contributor (Arch:firefox): Ionut Biru +# Contributor (Arch:firefox): Jakub Schmidtke + +# Contributor (ConnochaetOS:iceweasel): Henry Jensen + +# Maintainer: Andreas Grapentin +# Maintainer: Luke Shumaker +# Contributor: André Silva +# Contributor: Márcio Silva +# Contributor: fauno +# Contributor: vando +# Contributor: Figue +# Contributor: evr +# Contributor: Muhammad 'MJ' Jassim + +pkgname=icecat +_pkgver=60.3.0-gnu1 +pkgver=${_pkgver//-/_} +pkgrel=1.testing1 +pkgdesc="GNU IceCat - a libre standalone web browser based on Mozilla Firefox." +arch=(x86_64 i686 armv7h) +license=(MPL GPL LGPL) +url="http://www.gnu.org/software/gnuzilla/" +depends=(gtk3 gtk2 mozilla-common libxt startup-notification mime-types dbus-glib ffmpeg + nss hunspell-en_US sqlite ttf-font libpulse libvpx icu) +makedepends=(unzip zip diffutils python2 yasm mesa imake gconf inetutils xorg-server-xvfb + autoconf2.13 rust clang llvm jack mozilla-searchplugins) +optdepends=('networkmanager: Location detection via available WiFi networks' + 'libnotify: Notification integration' + 'pulseaudio: Audio support' + 'speech-dispatcher: Text-to-Speech') +options=(!emptydirs !makeflags !strip) +source=(http://ftp.gnu.org/gnu/gnuzilla/${_pkgver%-*}/$pkgname-$_pkgver.tar.bz2{,.sig} + $pkgname.desktop + gnu_headshadow.png + libre.patch) +sha256sums=('6145327092b4b195a4f63d0e86f4857eeba5607ffeb69b6f3bceb36e89a19645' + 'SKIP' + '2f9d117c1524312fb45f3e953cb0de02c525fd385a9b2b6d47308c8aaab0aedd' + '93e3001ce152e1d142619e215a9ef07dd429943b99d21726c25da9ceb31e31cd' + 'd32f97e812c536efd9bdc7043efd6f9472a1edd9f814b453805c7c10ffea25a6') +validpgpkeys=('A57369A8BABC2542B5A0368C3C76EED7D7E04784') # Ruben Rodriguez + +prepare() { + cd "$srcdir/$pkgname-${pkgver%_*}" + + # Patch to move files directly to /usr/lib/icecat. No more symlinks. + sed -e 's;$(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION);$(libdir)/$(MOZ_APP_NAME);g' -i config/baseconfig.mk + sed -e 's;$(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION);$(libdir)/$(MOZ_APP_NAME)-devel;g' -i config/baseconfig.mk + + cat >.mozconfig <> .mozconfig << END +ac_add_options --disable-webrtc +ac_add_options --disable-elf-hack +ac_add_options --enable-optimize="-g -O2 -fno-schedule-insns" +END + fi + + # Put gnu_headshadow.png in the source code + # install -m644 "$srcdir/gnu_headshadow.png" \ + # browser/base/content/abouthome + + # Patch and remove anything that's left + # patch -Np1 -i "$srcdir/libre.patch" + # rm -v browser/base/content/abouthome/snippet*.png || true + # sed -i '\|abouthome/snippet|d + # ' browser/base/jar.mn + + # Load our searchplugins + # rm -rf -- browser/locales/searchplugins + # cp -aT -- /usr/lib/mozilla/searchplugins browser/locales/searchplugins +} + +build() { + cd "$srcdir/$pkgname-${pkgver%_*}" + + ./mach build + ./mach buildsymbols +} + +package() { + local _icu_ver + _icu_ver=$(pacman -S --print-format='%v' icu) + depends+=("icu>=${_icu_ver}" "icu<$((${_icu_ver%%.*} + 1))") + + cd "$srcdir/$pkgname-${pkgver%_*}" + DESTDIR="$pkgdir" ./mach install + + _vendorjs="$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js" + install -Dm644 /dev/stdin "$_vendorjs" <