diff options
author | Mort Yao | 2015-06-09 14:25:18 +0800 |
---|---|---|
committer | Mort Yao | 2015-06-09 14:25:18 +0800 |
commit | 69be5a59fe0e1c38df87cb78438080817061b1be (patch) | |
tree | dea3575d780e0ae8733f42694dad73be4c8d99f8 | |
download | aur-69be5a59fe0e1c38df87cb78438080817061b1be.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | emacs-arduino-mode-git.install | 8 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e0c282c7d390 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = emacs-arduino-mode-git + pkgdesc = Major mode for the Arduino language. + pkgver = 20150609 + pkgrel = 1 + url = https://github.com/bookest/arduino-mode + install = emacs-arduino-mode-git.install + arch = any + license = GPL3 + makedepends = git + depends = emacs + provides = emacs-arduino-mode + replaces = emacs-arduino-mode + +pkgname = emacs-arduino-mode-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4af16f0f2c8a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Mort Yao <soi@mort.ninja> + +pkgname=emacs-arduino-mode-git +pkgver=20150609 +pkgrel=1 +pkgdesc="Major mode for the Arduino language." +arch=('any') +url="https://github.com/bookest/arduino-mode" +license=('GPL3') +depends=('emacs') +makedepends=('git') +provides=('emacs-arduino-mode') +replaces=('emacs-arduino-mode') +install=$pkgname.install + +_gitroot="https://github.com/bookest/arduino-mode" +_gitname="arduino-mode" +build() { + cd $startdir/src + msg "Connecting to github.com GIT server...." + + if [ -d $startdir/src/$_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot + fi + + msg "GIT checkout done or server timeout" +} + +package() { + cd $startdir/src/$_gitname + + install -d $pkgdir/usr/share/emacs/site-lisp/ + install -Dm644 arduino-mode.el $pkgdir/usr/share/emacs/site-lisp/ +} diff --git a/emacs-arduino-mode-git.install b/emacs-arduino-mode-git.install new file mode 100644 index 000000000000..017595c7f667 --- /dev/null +++ b/emacs-arduino-mode-git.install @@ -0,0 +1,8 @@ +post_install() { + cat <<EOF +==> Put this in your ~/.emacs file to use arduino-mode: + +(autoload 'arduino-mode "arduino-mode" "Arduino editing mode." t) +(add-to-list 'auto-mode-alist '("\.ino$" . arduino-mode)) +EOF +} |