# Maintainer: Figue # Contributor: Figue # Contributor (Parabola): fauno # Thank you very much to the older contributors: # Contributor: evr # Contributor: Muhammad 'MJ' Jassim pkgname=icecat pkgver=60.3.0 _pkgver=${pkgver}-gnu1 _pkgverbase=${pkgver%%.*} pkgrel=3 pkgdesc="GNU version of the Firefox browser." arch=(i686 x86_64) url="http://www.gnu.org/software/gnuzilla/" license=('GPL' 'MPL' 'LGPL') depends=('gtk3' 'gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib' 'ffmpeg' 'icu' 'libevent' 'nss' 'hunspell' 'sqlite' 'ttf-font') makedepends=('unzip' 'zip' 'diffutils' 'python2' 'yasm' 'mesa' 'imake' 'autoconf2.13' 'libpulse' 'gst-plugins-base-libs' 'inetutils' 'rust' 'llvm' 'clang') optdepends=('networkmanager: Location detection via available WiFi networks' 'libnotify: Notification integration' 'pulseaudio: Audio support' 'speech-dispatcher: Text-to-Speech') ## Set this variable to 1 if you want to build with clang compiler ## #_CLANG=0 source=(http://ftpmirror.gnu.org/gnuzilla/${pkgver}/${pkgname}-${_pkgver}.tar.bz2{,.sig} #source=(https://ftp.gnu.org/gnu/gnuzilla/${pkgver}/${pkgname}-${_pkgver}.tar.bz2{,.sig} ## Main upstream download site #source=(https://mirrors.kernel.org/gnu/gnuzilla/${pkgver}/${pkgname}-${_pkgver}.tar.bz2 ## Good mirror #source=(http://jenkins.trisquel.info/icecat/${pkgname}-${_pkgver}.tar.bz2 ## Official developer (Ruben Rodriguez) site. Probably only has developer releases. #source=(http://alpha.gnu.org/gnu/gnuzilla/${pkgver}/${pkgname}-${_pkgver}.tar.bz2{,.sig} icecat.desktop icecat-safe.desktop 'rust_133-part1.patch::https://bugzilla.mozilla.org/attachment.cgi?id=9046663' 'rust_133-part2.patch::https://bugzilla.mozilla.org/attachment.cgi?id=9046664' deny_missing_docs.patch) sha256sums=('6145327092b4b195a4f63d0e86f4857eeba5607ffeb69b6f3bceb36e89a19645' 'SKIP' 'c44eab35f71dd3028a74632463710d674b2e8a0682e5e887535e3233a3b7bbb3' '190577ad917bccfc89a9bcafbc331521f551b6f54e190bb6216eada48dcb1303' '8b37332dd205946ea95c606103b5b0e1e8498819051ea1c1bce79f04fd88ebca' '08ab4293d6008524a38e20b428c750c4c55a2f7189e9a0067871ad723c1efab5' 'cb1116c783995b8187574f84acb8365681aedaa2c76222cf060d31fedcb063c4') validpgpkeys=(A57369A8BABC2542B5A0368C3C76EED7D7E04784) # Ruben Rodriguez (GNU IceCat releases key) 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 # Bug 1521249 --enable-rust-simd fails to build using Rust 1.33 # https://bugzilla.mozilla.org/show_bug.cgi?id=1521249 patch -Np1 -i ../rust_133-part1.patch || true patch -Np1 -i ../rust_133-part2.patch patch -Np1 -i ../deny_missing_docs.patch printf '%b' " \e[1;36m->\e[0m\033[1m Starting build...\n" cat >.mozconfig <\e[0m\033[1m Finishing...\n" install -m755 -d ${pkgdir}/usr/share/applications install -m755 -d ${pkgdir}/usr/share/pixmaps for i in 16 32 48; do install -Dm644 ${srcdir}/${pkgname}-${pkgver}/browser/branding/official/default${i}.png \ "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/icecat.png" done install -Dm644 ${srcdir}/${pkgname}-${pkgver}/browser/branding/official/default48.png ${pkgdir}/usr/share/pixmaps/icecat.png install -Dm644 ${srcdir}/icecat.desktop ${pkgdir}/usr/share/applications/ install -Dm644 ${srcdir}/icecat-safe.desktop ${pkgdir}/usr/share/applications/ }