summaryrefslogtreecommitdiff
path: root/pcr/emacs-js2-mode/PKGBUILD
blob: 480c7f47b41abea38fe8a20218c2ea10f7a01100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Contributor: Hauke Wesselmann <hauke@h-dawg.de>
# Contributor: xgdgsc <xgdgsc at gmail dot com>
# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@hackers.camp>

pkgname=emacs-js2-mode
pkgver=20120726
pkgrel=1
pkgdesc="An improved JavaScript mode for GNU Emacs"
arch=('i686' 'x86_64' 'mips64el')
url="http://code.google.com/p/js2-mode/"
license=('GPL2')
depends=('emacs')
source=(https://js2-mode.googlecode.com/files/js2-mode.el)

build() {
  cd $srcdir
  emacs -batch -q -f batch-byte-compile js2-mode.el
  install -Dm644 $srcdir/js2-mode.el $pkgdir/usr/share/emacs/site-lisp/js2-mode.el
  install -Dm644 $srcdir/js2-mode.elc $pkgdir/usr/share/emacs/site-lisp/js2-mode.elc
}