daily pastebin goal
70%
SHARE
TWEET

firefox.pkgfile

timcowchip Mar 18th, 2017 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Description: Standalone web browser from mozilla.org - Beta
  2. # URL: https://www.mozilla.org/en-US/firefox/channel/#beta"
  3. # Maintainer:  Chris Farrell, timcowchip at gmail dot com
  4. # Depends on: dbus-glib gtk3 libxt nss pulseaudio
  5.  
  6. name=firefox
  7. version=53.0b2
  8. release=1
  9.  
  10. source=("$name-$version.tar.bz2" "firefox.desktop")
  11.  
  12. build() {
  13.   # Create directories
  14.   mkdir -p "$PKG"/usr/bin
  15.   mkdir -p "$PKG"/usr/share/applications
  16.   mkdir -p "$PKG"/usr/share/icons/hicolor/128x128/apps
  17.   mkdir -p "$PKG"/opt
  18.  
  19.   # Install
  20.   cp -r firefox/ "$PKG"/opt/$name
  21.  
  22.   # /usr/bin symlinks
  23.   ln -s /opt/$name/$name "$PKG"/usr/bin/$name  # compatibility
  24.    
  25.  # Desktops
  26.   install -m644 $name.desktop "$PKG"/usr/share/applications/
  27.  
  28.   # Icons
  29.   for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
  30.     install -d "$PKG"/usr/share/icons/hicolor/$i/apps/
  31.     ln -s /opt/$name/browser/chrome/icons/default/default${i/x*}.png \
  32.           "$PKG"/usr/share/icons/hicolor/$i/apps/$name.png
  33.   done
  34.  
  35.   # 128x128
  36.   ln -s /opt/$_name/browser/icons/mozicon128.png \
  37.         "$PKG"/usr/share/icons/hicolor/128x128/apps/$name.png
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top