# Template file for 'icecat' pkgname=icecat version=52.6.0 revision=3 short_desc="GNU version of the Firefox browser" maintainer="Jürgen Buchmüller " homepage="https://www.gnu.org/software/${pkgname}/" license="MPL-1.1, GPL-2, LGPL-2.1" distfiles="${GNU_SITE}/${pkgname}/${version}/${pkgname}-${version}-gnu1.tar.bz2" checksum=0a0cf3acb2067e0580204b44bb5a02fab2033c6bbf7c0b47522a3c4c1f29d625 lib32disabled=yes hostmakedepends="autoconf213 unzip zip pkg-config perl python yasm rust cargo" makedepends=" libatomic-devel nss-devel gtk+-devel sqlite-devel libevent-devel libnotify-devel libvpx-devel hunspell-devel libXt-devel $(vopt_if alsa alsa-lib-devel) $(vopt_if dbus dbus-glib-devel) $(vopt_if gtk3 gtk+3-devel) $(vopt_if pulseaudio pulseaudio-devel) $(vopt_if startup_notification startup-notification-devel) $(vopt_if xscreensaver libXScrnSaver-devel)" depends="nss>=3.29 desktop-file-utils hicolor-icon-theme" build_options="alsa dbus gtk3 pulseaudio startup_notification xscreensaver" build_options_default="alsa dbus gtk3 pulseaudio startup_notification xscreensaver" post_extract() { case "$XBPS_TARGET_MACHINE" in *-musl) # fix musl rust triplet sed -i "s/\(x86_64-unknown-linux\)-gnu/\1-musl/" build/moz.configure/rust.configure cp "${FILESDIR}/stab.h" toolkit/crashreporter/google-breakpad/src/ ;; esac # Google API key (see http://www.chromium.org/developers/how-tos/api-keys) # Note: This is for Void Linux use ONLY. echo -n "AIzaSyCIFdBA7eQP43R6kXRwTq7j6Mvj1ITze90" > google-api-key } do_build() { cp ${FILESDIR}/mozconfig .mozconfig case "$XBPS_TARGET_MACHINE" in *-musl) echo "ac_cv_header_execinfo_h=no" >> .mozconfig echo "ac_add_options --disable-jemalloc" >> .mozconfig echo "ac_add_options --enable-gold=no" >> .mozconfig ;; arm*|aarch*) echo "ac_add_options --enable-gold=no" >> .mozconfig ;; esac if [ "$CROSS_BUILD" ]; then export HOST_CFLAGS="${XBPS_CFLAGS}" export HOST_CXXFLAGS="${XBPS_CXXFLAGS}" echo "ac_cv_sqlite_secure_delete=yes" >> .mozconfig echo "ac_cv_sqlite_threadsafe=yes" >> .mozconfig echo "ac_cv_sqlite_enable_fts3=yes" >> .mozconfig echo "ac_cv_sqlite_dbstat_vtab=yes" >> .mozconfig echo "ac_cv_sqlite_enable_unlock_notify=yes" >> .mozconfig echo "ac_cv_prog_hostcxx_works=1" >> .mozconfig echo "ac_add_options --target=$XBPS_CROSS_TRIPLET" >>.mozconfig fi mkdir -p /usr/lib/icecat export LDFLAGS+=" -Wl,-rpath=/usr/lib/icecat" if [ "$SOURCE_DATE_EPOCH" ]; then export MOZ_BUILD_DATE=$(date --date "@$SOURCE_DATE_EPOCH" "+%Y%m%d%H%M%S") fi cat >>.mozconfig <