blob: 66baa08b54a477f88c07c343034fd22f1cef2043 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# contributor: zhuqin <zhuqin83@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer : Parabola GNU / Linux-libre <aurelien@cwb.io>
pkgname=emacs-org-mode-ravel-git
pkgver=20120812
pkgrel=1
pkgdesc="R backends for Orgmode by Chas Berry"
arch=('any')
url="https://github.com/chasberry/orgmode-accessories"
depends=(emacs emacs-org-mode)
makedepends=('git')
license=('GPL')
source=()
_gitroot="https://github.com/chasberry/orgmode-accessories.git"
_gitname="master"
build() {
cd $srcdir
msg "Connecting to the GIT server...."
if [[ -d $srcdir/$_gitname ]] ; then
cd $_gitname
git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done"
msg "Starting make..."
[[ -d $srcdir/$_gitname-build ]] && rm -rf $srcdir/$_gitname-build
git clone $srcdir/$_gitname $srcdir/$_gitname-build
cd $srcdir/$_gitname-build
emacs --batch --visit scratch --eval "(progn (require 'org) (require 'org-export) (require 'org-e-latex) (require 'org-e-html) (org-babel-load-file \"ravel.org\"))"
}
package() {
cd $srcdir/$_gitname-build
install -Dm 644 e-ravel.el $pkgdir/usr/share/emacs/site-lisp/e-ravel.el
mkdir -p $pkgdir/usr/share/doc/e-ravel/
cp *.org $pkgdir/usr/share/doc/e-ravel/
}
md5sums=()
|