1. # Maintainer: jsteel <jsteel at vorx dot com>
  2.  
  3. pkgname=lightning
  4. pkgver=1.1.1
  5. pkgrel=1
  6. pkgdesc="An integrated calendar extension for Mozilla Thunderbird"
  7. arch=('i686' 'x86_64')
  8. url="http://www.mozilla.org/projects/calendar/lightning"
  9. license=('MPL' 'GPL' 'LGPL')
  10. depends=('thunderbird' 'libnotify')
  11. makedepends=('libnotify' 'python2' 'unzip' 'zip' 'gtk2' 'dbus-glib' 'alsa-utils' 'yasm' 'glib' 'libidl2' 'mesa')
  12. source=(http://releases.mozilla.org/pub/mozilla.org/calendar/${pkgname}/releases/${pkgver}/source/${pkgname}-${pkgver}.source.tar.bz2)
  13. md5sums=('7f8b9365be7ef72db212c5187a899a96')
  14.  
  15. build() {
  16. cd "$srcdir/comm-beta"
  17.  
  18. echo 'ac_add_options --prefix=/usr/local/thunderbird
  19. ac_add_options --disable-tests
  20. ac_add_options --disable-debug
  21. ac_add_options --disable-shared
  22. ac_add_options --disable-necko-wifi
  23. ac_add_options --disable-accessibility
  24. ac_add_options --disable-angle
  25. ac_add_options --enable-static
  26. ac_add_options --enable-crypto
  27. ac_add_options --enable-application=mail
  28. ac_add_options --enable-calendar
  29. ac_add_options --without-system-nspr
  30. ac_add_options --without-system-zlib
  31. ac_add_options --without-system-jpeg
  32. ac_add_options --without-system-png
  33. ac_add_options --without-system-mng
  34. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-tb-release
  35. mk_add_options MOZILLA_DIR=@TOPSRCDIR@/mozilla
  36. mk_add_options MOZ_MAKE_FLAGS="-j2"' > .mozconfig
  37.  
  38. make -f client.mk
  39. }
  40.  
  41. package() {
  42. _emid=`grep em:id $srcdir/comm-beta/objdir-tb-release/mozilla/dist/xpi-stage/$pkgname/install.rdf | tail -n1 | sed 's/.*>\(.*\)<.*/\1/'`
  43. mkdir -p $pkgdir/usr/lib/thunderbird/extensions/$_emid
  44. cd $pkgdir/usr/lib/thunderbird/extensions/$_emid
  45. cp -R "$srcdir/comm-beta/objdir-tb-release/mozilla/dist/xpi-stage/$pkgname/"* .
  46. find -type d -exec chmod 0755 \{\} \+
  47. find -type f -exec chmod 0644 \{\} \+
  48. }