summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6db495dbb6f5da1fed4a383340b3453460c1ea89 (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
# Maintainer:  Esben Haabendal <esben@haabendal.dk>

pkgname=emacs-magit-popup
_github_org="magit"
_github_repo="magit-popup"
pkgver=2.13.0
pkgrel=1
pkgdesc="A generic interface for toggling switches and setting options and then invoking an Emacs command which does something with these arguments"
arch=('any')
url="http://github.com/${_github_org}/${_github_repo}"
license=('GPL3')
depends=('emacs' 'emacs-dash>=2.13.0' 'emacs-async>=1.9.2')
makedepends=('git')
provides=('emacs-magit-popup')
conflicts=('emacs-magit<=2.11.0')
install="${pkgname}.install"
source=("git+https://github.com/${_github_org}/${_github_repo}.git#tag=v${pkgver}")
md5sums=('SKIP')

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

package() {
  cd "$srcdir/${_github_repo}"
  mkdir -p ${pkgdir}/usr/share/emacs/site-lisp
  install -m 644 magit-popup.{el,elc} ${pkgdir}/usr/share/emacs/site-lisp
  mkdir -p ${pkgdir}/usr/share/info
  install -m 644 magit-popup.info ${pkgdir}/usr/share/info/
}