summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Husmann2015-06-09 00:23:34 +0200
committerStefan Husmann2015-06-09 00:23:34 +0200
commit6cd2625fcf805e8e46f43da868c95d3503d5c3f0 (patch)
tree5102f595d0ae4bd1dd752341ec64e9c821a4d900
downloadaur-6cd2625fcf805e8e46f43da868c95d3503d5c3f0.tar.gz
initial version
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
-rw-r--r--emacs-newlisp-mode.install17
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a50cb24ca4b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = emacs-newlisp-mode-git
+ pkgdesc = newLISP editing mode for Emacs
+ pkgver = 48.c1c38ac
+ pkgrel = 1
+ url = https://github.com/kosh04/newlisp-mode
+ install = emacs-newlisp-mode.install
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = emacs
+ provides = emacs-newlisp
+ conflicts = emacs-newlisp
+ source = git://github.com/kosh04/newlisp-mode.git
+ md5sums = SKIP
+
+pkgname = emacs-newlisp-mode-git
+
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
+}
diff --git a/emacs-newlisp-mode.install b/emacs-newlisp-mode.install
new file mode 100644
index 00000000000..4da61dc3ea0
--- /dev/null
+++ b/emacs-newlisp-mode.install
@@ -0,0 +1,17 @@
+post_install() {
+ echo "
+=> Autoloading:
+ ------------
+ In your .emacs or .init.el
+ (add-to-list 'auto-mode-alist '(\"\\\\.lsp\\\\'\" . newlisp-mode))
+ (add-to-list 'interpreter-mode-alist '("newlisp" . newlisp-mode))
+=> Newlisp is started with the Emacs command M-x newlisp-mode."
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}