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

pkgname=emacs-exwm-git
pkgver=r177.c22f356
pkgrel=1
pkgdesc="Windowmanager in written in elisp"
arch=('any')
url="https://github.com/ch11ng/exwm.git"
license=('GPL')
depends=('emacs')
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)
}

package() {
  cd "$srcdir/$_gitname"
  for _i in *.el
  do
    install -Dm644 ${_i} $pkgdir/usr/share/emacs/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
}