jorge_barroso

PKGBUILD iceweasel

May 10th, 2012
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Jorge <jorge.barroso.11@gmail.com>
  2. pkgname=('iceweasel-libre')
  3. pkgver=('12.0.3')
  4. pkgrel=('1')
  5. pkgdesc=('A libre version of Debian Iceweasel, the browser based on Mozilla Firefox.')
  6. arch=('x86_64')
  7. url=('http://www.geticeweasel.org/')
  8. license=('GPL2' 'MPL' 'LGPL')
  9. depends=('alsa-lib' 'dbus-glib' 'desktop-file-utils' 'gtk2' 'hicolor-icon-theme' 'hunspell' 'libevent' 'libnotify' 'libvpx' 'libxt' 'mime-types' 'mozilla-common' 'mozilla-searchplugins' 'nss>=3.13.1' 'sqlite3' 'startup-notification')
  10. optdepends=(iceweasel-sync)
  11. install='iceweasel.install'
  12. md5sums=('638379a2dcf1f3d116cf92a06c8ee9b9')
  13. source=(https://repo.parabolagnulinux.org/libre/os/$arch/$pkgname-$pkgver-$pkgrel-$arch.pkg.tar.xz)
  14.  
  15. package() {
  16. cd "$srcdir"
  17.  
  18. tar xf $pkgname-$pkgver-$pkgrel-$arch.pkg.tar.xz
  19. mkdir -p "${pkgdir}/usr/"
  20. cp -r "${srcdir}/usr//bin" "${pkgdir}/usr/bin"
  21. cp -r "${srcdir}/usr/share" "${pkgdir}/usr/share"
  22. cp -r "${srcdir}/usr/lib" "${pkgdir}/usr/lib"
  23.  
  24. chmod +x "${pkgdir}/usr/bin/iceweasel"
  25. sed 's|usr/local|usr|' -i "${pkgdir}/usr/bin/iceweasel"
  26. sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/applications/iceweasel.desktop"
  27. sed 's|usr/local|usr|' -i "${pkgdir}/usr/lib/iceweasel"/*/*/*/*
  28. sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/icons/hicolor/16x16/apps/iceweasel.png"
  29. sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/icons/hicolor/32x32/apps/iceweasel.png"
  30. sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/icons/hicolor/48x48/apps/iceweasel.png"
  31. sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/icons/hicolor/64x64/apps/iceweasel.png"
  32. sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/icons/hicolor/128x128/apps/iceweasel.png"
  33. sed 's|usr/local|usr|' -i "${pkgdir}/usr/share/icons/hicolor/scalable/apps/iceweasel.svg"
  34. }
  35.  
  36. # vim:set ts=2 sw=2 et:
RAW Paste Data