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 Sep 25th, 2010  |  syntax: None  |  size: 1.31 KB  |  views: 216  |  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. # Thanks to http://gpo.zugaina.org/app-emacs/nxhtml-mode
  3. pkgname=emacs-nxhtml
  4. pkgver=2.08
  5. _pkgdate=100425
  6. pkgrel=1
  7. pkgdesc="Emacs Utilities for Web Development"
  8. arch=('any')
  9. url="http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html"
  10. license=('GPL')
  11. depends=('emacs')
  12. install=$pkgname.install
  13. source=(http://ourcomments.org/Emacs/DL/elisp/nxhtml/zip/nxhtml-$pkgver-$_pkgdate.zip)
  14. md5sums=('26bfe125c38801246aeb64df00541efa')
  15.  
  16. build() {
  17.   cd $srcdir/nxhtml/
  18.  
  19.   find . -type f \
  20.     -exec chmod -x {} + \
  21.     -exec sed -i -e 's:\r$::' {} +
  22.  
  23.   # Regenerate the autoload code.
  24.   emacs --batch -L $srcdir/nxhtml -l nxhtmlmaint.el -f nxhtmlmaint-get-all-autoloads
  25.   emacs --batch --no-site-file \
  26.       -L $srcdir/nxhtml/ \
  27.       -L $srcdir/nxhtml/nxhtml/ \
  28.       -L $srcdir/nxhtml/util/ \
  29.       -L $srcdir/nxhtml/related/ \
  30.       -f batch-byte-compile \
  31.       autostart.el nxhtml-loaddefs.el nxhtml/*.el util/*.el related/*.el
  32.  
  33.   install -d $pkgdir/usr/share/emacs/site-lisp/
  34.   cp -a $srcdir/nxhtml/ $pkgdir/usr/share/emacs/site-lisp
  35.  
  36.   #chmod a+w $pkgdir/usr/share/emacs/site-lisp/nxhtml/etc/schema/xhtml-loader.rnc
  37.   echo 'include "../../../../23.1/etc/schema/xhtml.rnc"' > $pkgdir/usr/share/emacs/site-lisp/nxhtml/etc/schema/xhtml-loader.rnc
  38. }
clone this paste RAW Paste Data