#Packager: Dimitris Tzemos pkgname=mozilla-firefox pkgver=45.0.1esr _majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)\.\(.*\)esr/\1esr/"` #_majorver=$pkgver pkgrel=1dj arch=${arch:-x86_64} source=("http://ftp.mozilla.org/pub/firefox/releases/$pkgver/linux-$arch/en-US/firefox-$pkgver.tar.bz2" "mozilla-firefox.desktop" "all-salix.js" "duckduckgo-ssl.xml" "duckduckgo-lite.xml" "salix-forum.xml" "salix-wiki.xml" "salix.properties" "firefox.cfg" "local-settings.js" "override.ini") docs=("readme.txt" "install" "copying" "changelog" "authors" "news" "todo") doinst() { # update the mime desktop database if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q fi # update the mime database if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mozilla-firefox (safe and easy web browser from Mozilla)" "Firefox delivers safe, easy web browsing. A familiar user interface," "enhanced security features including protection from online identity" "theft, and integrated search let you get the most out of the web." ) build() { cd $startdir/src/firefox mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver cp -R ./* $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/ mkdir -p $startdir/pkg/usr/bin mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/mozilla-firefox.desktop $startdir/pkg/usr/share/applications/ mkdir -p $startdir/pkg/usr/share/icons/hicolor/{16x16,32x32,48x48,128x128}/apps cp $startdir/src/firefox/browser/chrome/icons/default/default16.png $startdir/pkg/usr/share/icons/hicolor/16x16/apps/firefox.png cp $startdir/src/firefox/browser/chrome/icons/default/default32.png $startdir/pkg/usr/share/icons/hicolor/32x32/apps/firefox.png cp $startdir/src/firefox/browser/chrome/icons/default/default48.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/firefox.png cp $startdir/src/firefox/browser/icons/mozicon128.png $startdir/pkg/usr/share/icons/hicolor/128x128/apps/firefox.png cp $startdir/src/all-salix.js $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/defaults/pref/ sed -i "s/_LIBDIRSUFFIX_/$LIBDIRSUFFIX/" $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/defaults/pref/all-salix.js sed -i "s/_PKGVER_/${_majorver}/" $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/defaults/pref/all-salix.js cp $startdir/src/salix.properties $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/ # These next three lines setup salix startup default page cp $startdir/src/firefox.cfg $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/ cp $startdir/src/override.ini $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/ cp $startdir/src/local-settings.js $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/defaults/pref/ cp $startdir/src/duckduckgo-{ssl,lite}.xml $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/browser/searchplugins/ cp $startdir/src/salix-wiki.xml $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/browser/searchplugins/ cp $startdir/src/salix-forum.xml $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/browser/searchplugins/ ( cd $startdir/pkg/usr/bin ln -sf /usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/firefox firefox ) mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX}/mozilla/plugins ( cd $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/browser ln -s ../../mozilla/plugins plugins ) # hopefully, disable updates rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/update-settings.ini rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/updater.ini rm $startdir/pkg/usr/lib${LIBDIRSUFFIX}/firefox-$_majorver/updater echo mozilla-firefox-noesr > $startdir/$pkgname-$pkgver-$arch-$pkgrel.con }