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 /PKGBUILD | |
download | aur-69be5a59fe0e1c38df87cb78438080817061b1be.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
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/ +} |