# Maintainer: Figue # Contributor (Parabola): fauno # Thank you very much to the older contributors: # Contributor: evr # Contributor: Muhammad 'MJ' Jassim pkgname=icecat pkgver=102.13.0 pkgrel=1 _commit=8c8a8ecc9322b0954e3d51f661866dbde1e6b1c3 pkgdesc="GNU version of the Firefox browser." arch=(x86_64) url="http://www.gnu.org/software/gnuzilla/" license=('GPL' 'MPL' 'LGPL') depends=(gtk3 libxt mime-types dbus-glib ffmpeg nss ttf-font libpulse) makedepends=(m4 unzip zip diffutils python-setuptools python-jsonschema yasm mesa imake inetutils xorg-server-xvfb autoconf2.13 rust clang llvm jack gtk2 python nodejs python-psutil cbindgen nasm wget mercurial git lld wasi-compiler-rt wasi-libc wasi-libc++ wasi-libc++abi) optdepends=('networkmanager: Location detection via available WiFi networks' 'libnotify: Notification integration' 'pulseaudio: Audio support' 'speech-dispatcher: Text-to-Speech' 'hunspell-en_US: Spell checking, American English' 'xdg-desktop-portal: Screensharing with Wayland') options=(!emptydirs !makeflags !strip) source=(https://git.savannah.gnu.org/cgit/gnuzilla.git/snapshot/gnuzilla-${_commit}.tar.gz icecat.desktop icecat-safe.desktop missing_cstdint.patch::https://hg.mozilla.org/mozilla-central/raw-rev/61f052c26dd1 RsdparsaSdpGlue.patch) sha256sums=('9648c2b137ff7b3bf56dbb633bb9097427cbbe5f4b21c293eb0b00e4fea2daa1' 'e00dbf01803cdd36fd9e1c0c018c19bb6f97e43016ea87062e6134bdc172bc7d' '33dd309eeb99ec730c97ba844bf6ce6c7840f7d27da19c82389cdefee8c20208' 'ca3cedc5edce26040d3caf735afa8744fe08f3a1695eb2cda3796f4f336632d3' '2a12b187a8803b0c3a4385d4567e1debf8bfa3e17c4c8cefdf39fb7434d3d932') prepare() { cd gnuzilla-${_commit} # Uncomment if you have issues with gpg download... WITH PROXY gpg doesn't work!!!!!! #sed -e 's/^verify_sources$//g' -i makeicecat mkdir output || rm -rf output/* # Clean output just in case is already an old build there if [ -f "${SRCDEST}/firefox-${pkgver}esr.source.tar.xz" ] && [ -f "${SRCDEST}/firefox-${pkgver}esr.source.tar.xz.asc" ]; then cp -f "${SRCDEST}"/firefox-${pkgver}esr.source.tar.xz{,.asc} output/ ; fi # Patches to avoid download sources if you have in your $startdir sed -e '/rm -rf output/d' -i makeicecat sed -e 's/wget -N/wget -nv -Nc/g' -i makeicecat # Other patches sed '/^finalize_sourceball$/d' -i makeicecat # If we want to avoid all locales, we can use variable _SPEED=y to build it with only 1 locale. Use variable _LOCALE to define it if [[ $_SPEED =~ [y|Y] ]]; then msg2 "Building without all locales..." sed -e 's/DEVEL=0/DEVEL=1/g' -i makeicecat # Also you can choose your locale using external variable _LOCALE. By default in upstream script this locale is es-ES [ -z "$_LOCALE" ] || sed -e "s/es-ES/$_LOCALE/g" -i makeicecat && echo "$_LOCALE" > custom-shipped-locales rm -rf data/files-to-append/l10n/* fi # Produce IceCat sources bash makeicecat cd output/icecat-${pkgver} # https://hg.mozilla.org/mozilla-central/rev/61f052c26dd1 patch -Np1 -i ../../../missing_cstdint.patch patch -Np1 -i ../../../RsdparsaSdpGlue.patch # 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 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 browser/branding/official/default${i}.png \ "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/icecat.png" done install -Dm644 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/ } # vim:set sw=2 et: