summaryrefslogtreecommitdiff
path: root/pcr/emacs-newlisp-mode-git/PKGBUILD
blob: 01be9fb85f880fcb441efed46fed9847d4283deb (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
# Maintainer (Arch): Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

# parabola changes and rationale:
#  no changes.

pkgname=emacs-newlisp-mode-git
pkgver=56.ac23be4
pkgrel=1
pkgdesc="newLISP editing mode for Emacs"
arch=('any')
url="https://github.com/kosh04/newlisp-mode"
license=('GPL3')
depends=('emacs')
makedepends=('git')
provides=('emacs-newlisp')
conflicts=('emacs-newlisp')
install=emacs-newlisp-mode.install
source=('git://github.com/kosh04/newlisp-mode.git')
md5sums=('SKIP')

pkgver() {
  cd $srcdir/newlisp-mode
  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd $srcdir/newlisp-mode
  emacs -Q -batch -L . -f batch-byte-compile newlisp-mode.el
}

package() {
  cd "$srcdir/newlisp-mode"
  install -Dm644 newlisp-mode.el $pkgdir/usr/share/emacs/site-lisp/newlisp-mode.el
  install -Dm644 newlisp-mode.elc $pkgdir/usr/share/emacs/site-lisp/newlisp-mode.elc
}