Want more features on Pastebin? Sign Up, it's FREE!
Guest

mozvoikko 2.0-4 - PKGBUILD

By: a guest on Dec 21st, 2011  |  syntax: None  |  size: 1.13 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Jussi Timperi <jussi.timperi at gmail dot com>
  2.  
  3. pkgname=mozvoikko
  4. pkgver=2.0
  5. pkgrel=4
  6. pkgdesc="Finnish spell-checker extension for Firefox using Voikko"
  7. arch=('any')
  8. url="http://voikko.sourceforge.net"
  9. license=('GPL2')
  10. depends=('libvoikko')
  11. optdepends=('firefox<=9.0a1' 'thunderbird<=9.0a1' 'seamonkey=2.4.1')
  12. source=("http://downloads.sourceforge.net/voikko/${pkgname}-${pkgver}.tar.gz"
  13.         "firefox-9-fix.diff")
  14.  
  15. package() {
  16.   cd "${srcdir}"
  17.   patch -p0 < ./firefox-9-fix.diff
  18.  
  19.   cd "${srcdir}/${pkgname}-${pkgver}"
  20.  
  21.    _UUID="{b676e3ff-cda7-4e0c-b2b8-74e4bb40a67a}"
  22.  
  23.   mkdir -p "${pkgdir}/usr/lib/firefox/extensions/${_UUID}"
  24.   mkdir -p "${pkgdir}/usr/lib/thunderbird/extensions/"
  25.   mkdir -p "${pkgdir}/usr/lib/seamonkey-2.4.1/extensions/"
  26.  
  27.   cp -r * "${pkgdir}/usr/lib/firefox/extensions/${_UUID}/"
  28.   ln -s "${pkgdir}/usr/lib/firefox/extensions/${_UUID}" "${pkgdir}/usr/lib/thunderbird/extensions/${_UUID}"
  29.   ln -s "${pkgdir}/usr/lib/firefox/extensions/${_UUID}" "${pkgdir}/usr/lib/seamonkey-2.4.1/extensions/${_UUID}"
  30. }
  31. md5sums=('b9bb14bdea2977deeafad3c29f692ac6'
  32.          '2cbcd7e691e3976d2e76908c0edbe81f')
clone this paste RAW Paste Data