Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: None  |  size: 1.49 KB  |  views: 5  |  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: Ismael Barros (RazZziel) <razielmine@gmail.com>
  2. pkgname=emacs-elscreen
  3. pkgver=1.4.6
  4. pkgrel=3
  5. pkgdesc="Frame configuration management for GNU Emacs modelled after GNU Screen"
  6. arch=('any')
  7. url="http://www.morishima.net/~naoto/software/elscreen/index.php.en"
  8. license=('GPL')
  9. depends=('emacs')
  10. makedepends=('emacs-apel')
  11. provides=('emacs-elscreen')
  12. conflicts=('emacs-elscreen')
  13. install=$pkgname.install
  14. source=(ftp://ftp.morishima.net/pub/morishima.net/naoto/ElScreen/elscreen-$pkgver.tar.gz
  15.     03_fix_emacs-command-line.dpatch
  16. )
  17. md5sums=('67d6b8913957ccacefef09c549a939fd'
  18.          '6cfb4d4926576e0aeb2ba59cbf5015ac')
  19.  
  20. build() {
  21.   cd $srcdir/elscreen-$pkgver
  22.   mkdir -p $pkgdir/usr/share/emacs/site-lisp
  23.  
  24.   # Apply patch to fix
  25.   # http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;bug=581935
  26.   #
  27.   # The bug prevents emacs from opening a file with the message
  28.   #     "Symbol's value as variable is void: dir"
  29.   # . See patch for details.
  30.   patch -p1 -i $srcdir/03_fix_emacs-command-line.dpatch
  31.  
  32.   emacs --batch --eval '(progn
  33.                         (push "." load-path)
  34.                         (byte-compile-file "elscreen.el"))'
  35.   cp elscreen.el{,c} $pkgdir/usr/share/emacs/site-lisp
  36.  
  37.   modules= #"dired dnd gf goby howm server w3m wl"
  38.   for module in $modules; do
  39.     cp ../elscreen-$module-*/elscreen-$module.el .
  40.     emacs --batch --eval "(progn
  41.                           (push \".\" load-path)
  42.                           (byte-compile-file \"elscreen-$module.el\"))"
  43.     cp elscreen-$module.el{,c} $pkgdir/usr/share/emacs/site-lisp
  44.   done
  45. }