# Maintainer: Ivy Foster # Contributor: Stefan Husmann # Contributor: Peter Simons # Contributor: Just Lest # Contributor: Daniel White pkgname=emacs-magit-git _gitname="magit" pkgver=2.1.0 pkgrel=1 pkgdesc="It's Magit! A Emacs mode for Git." arch=('any') url="http://github.com/${_gitname}/${_gitname}" license=('GPL3') depends=('emacs' 'git' 'emacs-dash=2.10.0') makedepends=('ed') provides=('emacs-magit') install="${pkgname}.install" source=("git+https://github.com/${_gitname}/${_gitname}.git") md5sums=('SKIP') pkgver() { cd "$_gitname" # Git tag echo $(git describe --tags|sed 's/-/./g') } build() { cd "$_gitname" make LOAD_PATH="-L /usr/share/emacs/site-lisp -L /usr/share/emacs/site-lisp/dash -L ${srcdir}/${_gitname}/lisp" \ lisp docs } package() { cd "$_gitname" make PREFIX="/usr" DESTDIR="${pkgdir}" install }