summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76867a3dad90260087479c6f4c42e187b8ef183f (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:  Esben Haabendal <esben@haabendal.dk>

pkgname=emacs-with-editor-git
_gitprofile="magit"
_gitrepo="with-editor"
pkgver=2.5.10
pkgrel=1
pkgdesc="Use the Emacsclient as the $EDITOR of child processes"
arch=('any')
url="http://github.com/${_gitprofile}/${_gitrepo}"
license=('GPL3')
depends=('emacs>=24.4' 'emacs-dash=2.13.0')
provides=('emacs-with-editor')
install="${pkgname}.install"
source=("git+https://github.com/${_gitprofile}/${_gitrepo}.git")
md5sums=('SKIP')

pkgver() {
  cd "$_gitrepo"
  # Latest annotated tag (release)
  git describe --abbrev=0 | sed 's/^v//'
}

build() {
  unset EMACS
  cd "$_gitrepo"
  make EFLAGS="-L /usr/share/emacs/site-lisp -L /usr/share/emacs/site-lisp/dash -L ${srcdir}/${_gitrepo}/lisp" \
       lisp info
}

package() {
  cd "$_gitrepo"
  mkdir -p ${pkgdir}/usr/share/emacs/site-lisp
  install -m 644 with-editor.{el,elc} ${pkgdir}/usr/share/emacs/site-lisp
  mkdir -p ${pkgdir}/usr/share/info
  install -m 644 with-editor.info ${pkgdir}/usr/share/info/
}