PKGBUILD (2089B) - View raw
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98: ${_install_path:=usr/lib} pkgname="icecat" pkgver=140.6.0 pkgrel=1 pkgdesc="GNU version of the Firefox ESR browser" url="https://www.gnu.org/software/gnuzilla" license=('MPL-2.0') arch=('x86_64') provides=("$pkgname") conflicts=("$pkgname") options=('!strip' '!debug') _file="icecat-$pkgver.en-US.linux-$CARCH.tar.xz" source=( "$_file" "user.js" ) sha256sums=( '58822bb03c45eb70d6d1e8867e6edd93c4eec47194df744219ec474f5fd58346' 'ff229336d8db84da8abf2070b42167feeba77b388e5ff9d820b808247fe30ad8' ) package() { depends=( dbus ffmpeg ffmpeg4.4 gtk3 libevent libjpeg libpulse libvpx.so libwebp.so libxss libxt mime-types nspr nss ttf-font zlib ) install -Dm644 "user.js" "$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js" # main files _path="$pkgdir/$_install_path" mkdir -pm755 "$_path" bsdtar -C "$_path" -xf "$srcdir/$_file" # duplicate binary ln -sf icecat-bin "$_path/$pkgname/icecat" # symlink mkdir -pm755 "$pkgdir/usr/bin" ln -sf "/$_install_path/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname" # icon install -Dm644 "$pkgdir/$_install_path/$pkgname/browser/chrome/icons/default/default128.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" # launcher install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$pkgname.desktop" << END [Desktop Entry] Name=IceCat GenericName=Web Browser Comment=Browse the World Wide Web Keywords=Internet;WWW;Browser;Web;Explorer Exec=icecat %u Icon=icecat Terminal=false X-MultipleArgs=false Type=Application MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall; StartupNotify=true StartupWMClass=icecat-default Categories=Network;WebBrowser; Actions=new-window;new-private-window;safe-mode; [Desktop Action new-window] Name=New Window Exec=icecat --new-window %u [Desktop Action new-private-window] Name=New Private Window Exec=icecat --private-window %u [Desktop Action safe-mode] Name=Safe Mode Exec=icecat -safe-mode %u END # permissions chmod -R u+rwX,go+rX,go-w "$pkgdir/" }