diff options
author | Daichi Shinozaki | 2015-06-09 18:12:04 +0900 |
---|---|---|
committer | Daichi Shinozaki | 2015-06-09 18:12:04 +0900 |
commit | 8c31374f686f860284e526ba8c8b35b01dafbfd1 (patch) | |
tree | 463dfe61d04d79c7d066e1d3af3bbdb85c418520 | |
download | aur-8c31374f686f860284e526ba8c8b35b01dafbfd1.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | emacs-haxe.install | 30 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f0fd2567c707 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = emacs-haxe + pkgdesc = Emacs major mode for the haXe programming language + pkgver = 0.3.1 + pkgrel = 2 + url = http://haxe.org/com/ide + install = emacs-haxe.install + arch = any + license = GPL + depends = emacs + source = https://bitbucket.org/jpsecher/haxe-mode/raw/6f6d86720db37e44056786929c5a7fc5f115b7a8/haxe-mode.el + md5sums = 007e03613cc7dcdb69c85cdf568ac02c + +pkgname = emacs-haxe + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1c68b2c4d4ab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Daichi Shinozaki <dsdseg@gmail.com> +# Contributor: Ismael Barros (RazZziel) <razielmine@gmail.com> +pkgname=emacs-haxe +pkgver=0.3.1 +pkgrel=2 +pkgdesc="Emacs major mode for the haXe programming language" +arch=('any') +url="http://haxe.org/com/ide" +license=('GPL') +depends=('emacs') +install=$pkgname.install +#source=(http://people.debian.org/~jps/misc/haxe-mode.el) +source=https://bitbucket.org/jpsecher/haxe-mode/raw/6f6d86720db37e44056786929c5a7fc5f115b7a8/haxe-mode.el +md5sums=('007e03613cc7dcdb69c85cdf568ac02c') + +build() { + cd $startdir/src/ + mkdir -p $startdir/pkg/usr/share/emacs/site-lisp + emacs --batch --eval '(progn + (push "." load-path) + (byte-compile-file "haxe-mode.el"))' || return 1 + cp haxe-mode.el{,c} $startdir/pkg/usr/share/emacs/site-lisp || return 1 +} diff --git a/emacs-haxe.install b/emacs-haxe.install new file mode 100644 index 000000000000..979167c923b1 --- /dev/null +++ b/emacs-haxe.install @@ -0,0 +1,30 @@ +post_install() { + cat <<EOF +==> Include something like this in your .emacs: + (require 'haxe-mode) + (defconst my-haxe-style + '("java" (c-offsets-alist . ((case-label . +) + (arglist-intro . +) + (arglist-cont-nonempty . 0) + (arglist-close . 0) + (cpp-macro . 0)))) + "My haXe Programming Style") + (add-hook 'haxe-mode-hook + (function (lambda () (c-add-style "haxe" my-haxe-style t)))) + (add-hook 'haxe-mode-hook + (function + (lambda () + (setq tab-width 4) + (setq indent-tabs-mode t) + (setq fill-column 80) + (local-set-key [(return)] 'newline-and-indent)))) +EOF +} + +post_upgrade() { + post_install $1 +} + +op=$1 +shift +$op $* |