summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25ee4b37f12de6375cbbf0e2f9c175b8bae6558e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer:  Ivy Foster <joyfulgirl@archlinux.us>
# Contributor: Stefan Husmann <stefan.husmann@t-online.de>
# Contributor: Peter Simons <simons@cryp.to>
# Contributor: Just Lest <just.lest@gmail.com>
# Contributor: Daniel White <daniel@whitehouse.id.au>

pkgname=emacs-magit-git
_gitname="magit"
pkgver=2.10.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.12.1' 'emacs-with-editor-git>=2.5.0')
makedepends=('ed')
provides=('emacs-magit')
install="${pkgname}.install"
source=("git+https://github.com/${_gitname}/${_gitname}.git")
md5sums=('SKIP')

pkgver() {
  cd "$_gitname"
  # Latest annotated tag (release)
  git describe --abbrev=0
}

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
}