summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 036b0c460af0f08f5708d594c50dd718c9cac7fe (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-exwm-git
pkgver=r425.786c2b4
pkgrel=1
pkgdesc="Use emacs as windowmanager"
arch=('any')
url="https://github.com/ch11ng/exwm.git"
license=('GPL')
depends=('emacs-xelb')
makedepends=('git')
provides=('emacs-exwm')
conflicts=('emacs-exwm')
source=("git+https://github.com/ch11ng/exwm.git")
md5sums=('SKIP')
_gitname="exwm"

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

build() {
  cd "$_gitname"
  emacs -Q -batch -L . -f batch-byte-compile *.el || true
}

package() {
  cd "$_gitname"
  for _i in *.el
  do
    install -Dm644 ${_i} "$pkgdir"/usr/share/emacs/site-lisp/exwm/${_i}
  done
  install -Dm644 README.md "$pkgdir"/usr/share/doc/emacs-exwm/README.md
  install -Dm644 xinitrc "$pkgdir"/usr/share/doc/emacs-exwm/sample-xinitrc
}