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

pkgname=emacs-editorconfig-git
pkgver=v0.7.11.r35.e314a7cb6437
pkgrel=1
pkgdesc="EditorConfig Emacs Plugin"
arch=('any')
_github_org="editorconfig"
_github_repo="editorconfig-emacs"
url="http://github.com/${_github_org}/${_github_repo}"
license=('GPL3')
depends=('emacs' 'editorconfig-core-c')
makedepends=('git')
provides=('emacs-editorconfig')
install="${pkgname}.install"
source=("git+https://github.com/${_github_org}/${_github_repo}.git")
md5sums=('SKIP')

pkgver() {
  cd "$_github_repo"
  printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

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

package() {
  cd "$_github_repo"
  mkdir -p ${pkgdir}/usr/share/emacs/site-lisp/editorconfig-emacs
  cp *.el* ${pkgdir}/usr/share/emacs/site-lisp/editorconfig-emacs
}