milis/talimatname/genel/i/icecat/talimat

60 lines
2.0 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: Firefox Web Tarayıcısının GNU çatallaması
# URL: http://www.gnu.org/software/gnuzilla/
# Paketçi: milisarge
# Gerekler: unzip zip python yasm xorg-mesa xorg-imake gconf autoconf2 pulseaudio dejavu-ttf gstreamer-plugins-base cargo gtk3 gtk2 xorg-libxt startup-notification dbus-glib alsa-lib ffmpeg libvpx icu libevent nss hunspell sqlite freefont-ttf
2018-08-09 09:52:43 +02:00
# Grup: ağ
2018-06-09 00:06:58 +02:00
isim=icecat
surum=52.1.0
devir=1
kaynak=(http://ftpmirror.gnu.org/gnuzilla/52.1.0/icecat-$surum-gnu1.tar.bz2
mozconfig
icecat.desktop
icecat-safe.desktop
vendor.js
fix-wifi-scanner.diff
no-crmf.diff)
derle() {
cd "${SRC}/${isim}-${surum}"
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
patch -Np1 -i ../fix-wifi-scanner.diff
patch -Np1 -i ../no-crmf.diff
cp -v ${SRC}/mozconfig .mozconfig
mkdir -p "$SRC/path"
ln -s /usr/bin/python2 "$SRC/path/python"
cd "${SRC}/${isim}-${surum}"
ICECATDIR="/usr/lib/${isim}" && export ICECATDIR
CPPFLAGS+=" -O2"
LDFLAGS+=" -Wl,-z,now"
export PATH="$SRC/path:$PATH"
SHELL=/bin/sh make -f client.mk build
SHELL=/bin/sh make -f client.mk DESTDIR="${PKG}" install
install -m755 -d ${PKG}/usr/share/applications
install -m755 -d ${PKG}/usr/share/pixmaps
for i in 16 32 48; do
install -Dm644 ${SRC}/${isim}-${surum}/browser/branding/official/default${i}.png \
"$PKG/usr/share/icons/hicolor/${i}x${i}/apps/icecat.png"
done
install -Dm644 ${SRC}/${isim}-${surum}/browser/branding/official/default48.png ${PKG}/usr/share/pixmaps/icecat.png
install -Dm644 ${SRC}/icecat.desktop ${PKG}/usr/share/applications/
install -Dm644 ${SRC}/icecat-safe.desktop ${PKG}/usr/share/applications/
install -Dm644 "${SRC}"/vendor.js "${PKG}${ICECATDIR}/browser/defaults/preferences/vendor.js"
rm -rv "$PKG"/usr/{include,lib/icecat-devel,share/idl}
}