From b6cb10de275cea63bab0bee2a98342afa4fdc4ee Mon Sep 17 00:00:00 2001 From: aurelien Date: Sun, 30 Dec 2012 18:57:37 +0100 Subject: + chm2pdf newlisp emacs-newlisp --- pcr/emacs-newlisp/PKGBUILD | 24 ++++++++++++++++++++++++ pcr/emacs-newlisp/emacs-newlisp.install | 26 ++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 pcr/emacs-newlisp/PKGBUILD create mode 100644 pcr/emacs-newlisp/emacs-newlisp.install (limited to 'pcr/emacs-newlisp') diff --git a/pcr/emacs-newlisp/PKGBUILD b/pcr/emacs-newlisp/PKGBUILD new file mode 100644 index 000000000..25dcbc219 --- /dev/null +++ b/pcr/emacs-newlisp/PKGBUILD @@ -0,0 +1,24 @@ +# Contributor: Jan Kròávek +# Contributor: Stefan Husmann +# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES + +pkgname=emacs-newlisp +pkgver=0.25 +pkgrel=5 +arch=('any') +pkgdesc="Emacs mode for Newlisp." +url="http://artfulcode.net/projects" +depends=('emacs') +makedepends=('unzip') +license=('GPL') +source=(http://www.artfulcode.net/wp-content/uploads/2008/12/newlisp-mode.zip) +noextract=newlisp-mode.zip +install=emacs-newlisp.install + +build() { + cd $srcdir + unzip -quo newlisp-mode.zip || return 1 + cd $srcdir/newlisp-mode || return 1 + install -d $pkgdir/usr/share/emacs/site-lisp/newlisp-mode + install -Dm644 *.el $pkgdir/usr/share/emacs/site-lisp/newlisp-mode +} diff --git a/pcr/emacs-newlisp/emacs-newlisp.install b/pcr/emacs-newlisp/emacs-newlisp.install new file mode 100644 index 000000000..640e19d16 --- /dev/null +++ b/pcr/emacs-newlisp/emacs-newlisp.install @@ -0,0 +1,26 @@ +# vim: set ft=sh: +post_install() { + echo " +=> Autoloading: + ------------ + In your .emacs or .init.el + (add-to-list 'load-path (expand-file-name \"/usr/share/emacs/site-lisp/newlisp-mode\")) + (add-to-list 'auto-mode-alist '(\"\\\\.lsp\\\\'\" . newlisp-mode)) + (autoload 'newlisp-mode \"newlisp\" \"Turn on NewLisp mode\" t) + (turn-on-font-lock) + +=> Newlisp is started with the Emacs command M-x newlisp-mode." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install +} + +op=$1 +shift + +$op $* -- cgit v1.2.3-54-g00ecf