updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / emacs-zenburn-git / PKGBUILD
blob8bd35292d1b3cd3c169a8b29bd386b30995c266f
1 # Contributor: listdata <linusarver <at> gmail <dot> com>
2 pkgname=emacs-zenburn-git
3 pkgver=20111113
4 pkgrel=1
5 pkgdesc="The zenburn color theme for GNU Emacs "
6 arch=('any')
7 url="https://github.com/dbrock/zenburn-el"
8 depends=(emacs emacs-color-theme)
9 makedepends=('git')
10 license=('GPL')
11 install=$pkgname.install
13 _gitroot="git://github.com/dbrock/zenburn-el.git"
14 _gitname="zenburn-el"
16 build() {
17   cd $srcdir
19   if [[ -d $_gitname ]]; then
20     cd $_gitname
21     git clean -dxf
22     git reset --hard
23     msg "Pulling from GIT server..."
24     git pull origin
25   else
26     git clone --depth 1 $_gitroot $_gitname
27     cd $_gitname
28   fi
31 package() {
32   # create destination path
33   install -d $pkgdir/usr/share/emacs/site-lisp/$_gitname
34   # copy over files into path
35   cp $srcdir/$_gitname/zenburn.el $pkgdir/usr/share/emacs/site-lisp/$_gitname