1 # Maintainer: Mitchel Humpherys <mitch.special@gmail.com>
6 pkgdesc="Interface between Emacs List and Python (Python3 support)"
7 url="https://github.com/pinard/Pymacs"
10 depends=('emacs' 'python')
11 makedepends=('git' 'docutils')
18 _gitroot='https://github.com/pinard/Pymacs.git'
23 msg "Connecting to git server..."
24 if [[ -d $_gitname ]]; then
25 cd $_gitname && git pull origin
26 msg "The local files are up-to-date"
28 git clone $_gitroot $_gitname --depth=1
34 emacs -batch -f batch-byte-compile pymacs.el
35 python setup.py build || return 1
36 # ./configure --prefix=/usr
38 # make DESTDIR=$startdir/pkg install
42 cd "$srcdir/$_gitname"
43 python setup.py install --prefix=$pkgdir/usr --optimize=1
44 install -d ${pkgdir}/usr/share/emacs/site-lisp
45 install -m 644 pymacs.{el,elc} ${pkgdir}/usr/share/emacs/site-lisp
46 install -Dm644 pymacs.pdf ${pkgdir}/usr/share/doc/pymacs/pymacs.pdf
47 cp -r contrib ${pkgdir}/usr/share/doc/pymacs/