diff options
author | Daichi Shinozaki | 2015-06-09 18:12:30 +0900 |
---|---|---|
committer | Daichi Shinozaki | 2015-06-09 18:12:30 +0900 |
commit | 7f177f6f0bc40c50a138d410f75bd20ce14b875d (patch) | |
tree | e619f548ffb9f233d54bef82337d9f34efc3489d | |
download | aur-7f177f6f0bc40c50a138d410f75bd20ce14b875d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | emacs-moonscript-mode.install | 13 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b682422e290c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = emacs-moonscript-mode + pkgdesc = Emacs major mode for the MoonScript programming language + pkgver = r6.5b45c30 + pkgrel = 1 + url = https://github.com/k2052/moonscript-mode + install = emacs-moonscript-mode.install + arch = any + license = MIT + depends = emacs + source = git+https://github.com/k2052/moonscript-mode.git + md5sums = SKIP + +pkgname = emacs-moonscript-mode + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cae94ffd724b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Daichi Shinozaki <dsdseg@gmail.com> +pkgname=emacs-moonscript-mode +pkgver=r6.5b45c30 +pkgrel=1 +pkgdesc="Emacs major mode for the MoonScript programming language" +arch=('any') +url="https://github.com/k2052/moonscript-mode" +license=('MIT') +depends=('emacs') +install=$pkgname.install +source=('git+https://github.com/k2052/moonscript-mode.git') +md5sums=('SKIP') +_pkgname=${pkgname#emacs-} + +pkgver() { + cd $srcdir/$_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $srcdir/$_pkgname + emacs --batch --eval '(progn + (push "." load-path) + (byte-compile-file "moonscript-mode.el") + (byte-compile-file "moonscriptrepl-mode.el"))' +} + +package() { + mkdir -p $pkgdir/usr/share/emacs/site-lisp + cd $srcdir/$_pkgname + install -m644 *.el* $pkgdir/usr/share/emacs/site-lisp + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/emacs-moonscript-mode.install b/emacs-moonscript-mode.install new file mode 100644 index 000000000000..472939a76824 --- /dev/null +++ b/emacs-moonscript-mode.install @@ -0,0 +1,13 @@ +post_install() { + cat <<EOF +==> Include something like this in your .emacs: +(autoload 'moonscript-mode "moonscript-mode" + "Major mode for editing MoonScript source files" t) +(add-to-list 'auto-mode-alist '("\\.moon\\'" . moonscript-mode)) +(require 'moonscriptrepl-mode) +EOF +} + +post_upgrade() { + post_install $1 +} |