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

pkgname=emacs-ghub
_github_org="magit"
_github_repo="ghub"
pkgver=1.1.0
pkgrel=1
pkgdesc="Emacs - Minuscule client library for the Github API"
arch=('any')
url="http://github.com/${_github_org}/${_github_repo}"
license=('GPL3')
depends=('emacs')
makedepends=('git')
provides=('emacs-ghub')
source=("git+https://github.com/${_github_org}/${_github_repo}.git#tag=v${pkgver}")
md5sums=('SKIP')

build() {
  cd "$srcdir/${_github_repo}"
  emacs -batch -Q -L . -f batch-byte-compile ghub.el
}

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