1 # Contributor: Ismael Barros (RazZziel) <razielmine@gmail.com>
2 # Thanks to http://gpo.zugaina.org/app-emacs/nxhtml-mode
7 pkgdesc="Emacs Utilities for Web Development"
9 url="http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html"
12 install=$pkgname.install
13 source=(http://ourcomments.org/Emacs/DL/elisp/nxhtml/zip/nxhtml-$pkgver-$_pkgdate.zip)
14 md5sums=('26bfe125c38801246aeb64df00541efa')
21 -exec sed -i -e 's:\r$::' {} +
23 # Regenerate the autoload code.
24 emacs --batch -L $srcdir/nxhtml -L $srcdir/nxhtml/util -l nxhtmlmaint.el -f nxhtmlmaint-get-all-autoloads
25 emacs --batch --no-site-file \
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
33 install -d $pkgdir/usr/share/emacs/site-lisp/
34 cp -a $srcdir/nxhtml/ $pkgdir/usr/share/emacs/site-lisp
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