updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / emacs-nxhtml / PKGBUILD
blobf5af86a4a30bf7a26bd16055b69c7cdf936b65a1
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=2
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')
16 build() {
17   cd $srcdir/nxhtml/
19   find . -type f \
20     -exec chmod -x {} + \
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 \
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
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