diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-04-11 01:52:32 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-04-11 01:52:32 +0200 |
commit | 5fa77f6ef44ef741328197c99305695dacd3eb49 (patch) | |
tree | 0cad7b9ead36e0932554f7e94dd3b0eb34d5cf94 /emacs-clojure-mode-git/PKGBUILD | |
parent | m (diff) | |
download | aur-packages-5fa77f6ef44ef741328197c99305695dacd3eb49.tar.gz aur-packages-5fa77f6ef44ef741328197c99305695dacd3eb49.tar.bz2 aur-packages-5fa77f6ef44ef741328197c99305695dacd3eb49.tar.xz |
more packages
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | emacs-clojure-mode-git/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/emacs-clojure-mode-git/PKGBUILD b/emacs-clojure-mode-git/PKGBUILD new file mode 100644 index 0000000..df78e0b --- /dev/null +++ b/emacs-clojure-mode-git/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +# Contributor: Gianni Vialetto <g.vialetto@gmail.com> +# Contributor: Nick Vogel <vogelrn+aur@gmail.com> + +pkgname=emacs-clojure-mode-git +pkgver=20130411 +pkgrel=1 +arch=('any') +pkgdesc="Emacs major mode for the clojure language (GIT version)" +url="https://github.com/technomancy/clojure-mode" +license="GPL3" +depends=('emacs') +optdepends=('paredit: enhanced LISP structure editing') +makedepends=('git') +provides=('emacs-clojure-mode') +replaces=('emacs-clojure-mode') +install='emacs-clojure-mode-git.install' + +_gitroot="https://github.com/technomancy/clojure-mode.git" +_gitname="clojure-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 the files in directory created above + install -m644 clojure-mode.el -t $pkgdir/usr/share/emacs/site-lisp/ + install -m644 clojure-test-mode.el -t $pkgdir/usr/share/emacs/site-lisp/ +} + |