diff options
-rw-r--r-- | pcr/emacs-newlisp-mode-git/PKGBUILD | 33 | ||||
-rw-r--r-- | pcr/emacs-newlisp/PKGBUILD | 24 | ||||
-rw-r--r-- | pcr/emacs-newlisp/emacs-newlisp.install | 26 |
3 files changed, 33 insertions, 50 deletions
diff --git a/pcr/emacs-newlisp-mode-git/PKGBUILD b/pcr/emacs-newlisp-mode-git/PKGBUILD new file mode 100644 index 000000000..7b0031f08 --- /dev/null +++ b/pcr/emacs-newlisp-mode-git/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=emacs-newlisp-mode-git +pkgver=39.cb67534 +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/pcr/emacs-newlisp/PKGBUILD b/pcr/emacs-newlisp/PKGBUILD deleted file mode 100644 index 5f528640d..000000000 --- a/pcr/emacs-newlisp/PKGBUILD +++ /dev/null @@ -1,24 +0,0 @@ -# Contributor (Arch): Jan Kròávek <wamba@centrum.cz> -# Contributor (Arch): Stefan Husmann <stefan-husmann@t-online.de> -# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES <aurelien@cwb.IO> - -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 deleted file mode 100644 index 640e19d16..000000000 --- a/pcr/emacs-newlisp/emacs-newlisp.install +++ /dev/null @@ -1,26 +0,0 @@ -# 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 $* |