summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e39ade8b145b0253e1ba6b6cc987814fdf2adf9 (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.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
}