summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eda7fc50378
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+pkgname=emacs-newlisp-mode-git
+pkgver=48.c1c38ac
+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
+}