blob: 077309c2a4301ab625e145870998832493d1fedf (
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
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-xelb-git
pkgver=r151.3226fe2
pkgrel=1
pkgdesc="emacs interface to xcb"
arch=('any')
url="https://github.com/ch11ng/xelb"
license=('GPL')
depends=('emacs')
makedepends=('git')
provides=('emacs-xelb')
conflicts=('emacs-xelb')
source=("git+https://github.com/ch11ng/xelb.git")
md5sums=('SKIP')
_gitname="xelb"
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/xelb/${_i}
done
install -Dm644 README.md "$pkgdir"/usr/share/doc/emacs-xelb/README.md
}
|