blob: f5968cea2502736f2facc9642c8479d23f643d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Contributor: Yichao Yu <yyc1992@gmail.com>
# Contributor: Hauke Wesselmann <hauke@h-dawg.de>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-js2-mode-git
pkgver=20190307
pkgrel=1
pkgdesc="An improved JavaScript mode for GNU Emacs"
arch=('any')
url="https://github.com/mooz/js2-mode.git"
license=('GPL3')
depends=('emacs')
provides=('emacs-js2-mode')
conflicts=('emacs-js2-mode')
_gitname=js2-mode
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "$srcdir"/$_gitname
echo $(git log -1 --format="%cd" --date=short | sed 's|-||g')
}
build() {
cd "$srcdir/$_gitname"
make
}
package() {
cd "$srcdir/$_gitname"
install -Dm644 js2-mode.el "$pkgdir"/usr/share/emacs/site-lisp/js2-mode.el
install -Dm644 js2-mode.elc "$pkgdir"/usr/share/emacs/site-lisp/js2-mode.elc
install -Dm644 js2-old-indent.el "$pkgdir"/usr/share/emacs/site-lisp/js2-old-indent.el
install -Dm644 js2-imenu-extras.el \
"$pkgdir/usr/share/emacs/site-lisp/js2-imenu-extras.el"
install -Dm644 js2-imenu-extras.elc \
"$pkgdir/usr/share/emacs/site-lisp/js2-imenu-extras.elc"
}
|