blob: bf4b1f5e8f8eeee3ac17b56f71ed47a633c25cfa (
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
37
38
|
# Maintainer: sumito3478 <sumito3478gmail.com>
pkgname=emacs-color-theme-xoria256
pkgver=20130429
pkgrel=1
pkgdesc="Emacs port of Dmitriy Zotikov's xoria256 vim theme"
arch=(any)
license=('unknown')
url="https://github.com/pat-rondon/color-theme-xoria256"
depends=('emacs' 'emacs-color-theme')
makedepends=('git')
_gitroot="https://github.com/pat-rondon/color-theme-xoria256.git"
_gitname=color-theme-xoria256
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
cd "$srcdir/$_gitname"
emacs --batch --eval '(progn (push "." load-path) (byte-compile-file "color-theme-xoria256.el"))'
}
package() {
cd "$srcdir/$_gitname"
install -d -m755 ${pkgdir}/usr/share/emacs/site-lisp/themes || return 1
install -D -m644 *.el *.elc ${pkgdir}/usr/share/emacs/site-lisp/themes || return 1
}
|