summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1355ec9fd496d17505bc065e3d3b2c8ee48fe98 (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
# Contributor: Alex Whitt <alex.joseph.whitt@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-company-mode-git
pkgver=0.9.10.r1.gad6ff0e
pkgrel=1
pkgdesc="Modular in-buffer completion framework for Emacs - git checkout"
url="http://company-mode.github.io"
arch=('any')
license=('GPL3')
depends=('emacs')
makedepends=('git')
conflicts=('emacs-company-mode')
provides=('emacs-company-mode')
source=("git+https://github.com/company-mode/company-mode.git")
sha256sums=('SKIP')
_gitname=${pkgname%-git}
_gitname=${_gitname#emacs-}

pkgver() {
  cd $_gitname
  git describe --tags|sed 's+-+.r+'|tr - .
}

build() {
  cd $_gitname
  emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
}

package() {
  cd $_gitname
  install -d "${pkgdir}"/usr/share/emacs/site-lisp/$_gitname
  install -m644 *.el{c,} "${pkgdir}"/usr/share/emacs/site-lisp/$_gitname/
}