1 # Contributor: Tiago Pierezan Camargo <tcamargo@gmail.com>
2 # Contributor: Richard Murri <admin@richardmurri.com>
3 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
9 pkgdesc='Interface between Emacs Lisp and Python.'
11 url='http://pymacs.progiciels-bpi.ca/'
13 depends=('python2' 'emacs')
14 makedepends=('docutils' 'texlive-core')
15 source=($pkgname-$pkgver.tar.gz::https://github.com/pinard/Pymacs/tarball/v0.24-beta2)
16 md5sums=('d126837a14f2e26e2cac34fd70ab01e6')
17 install=$pkgname.install
20 cd ${srcdir}/pinard-P${pkgname:1}-${_gitrel:1}
21 make PREFIX=/usr PYTHON=python2
22 make PYTHON=python2 pymacs.pdf
23 emacs -batch -f batch-byte-compile pymacs.el
24 python2 ./setup.py build
27 cd ${srcdir}/pinard-P${pkgname:1}-${_gitrel:1}
28 python2 ./setup.py install --prefix=${pkgdir}/usr
29 install -d ${pkgdir}/usr/share/emacs/site-lisp
30 install -m 644 $pkgname.{el,elc} ${pkgdir}/usr/share/emacs/site-lisp
31 install -Dm644 $pkgname.pdf ${pkgdir}/usr/share/doc/$pkgname/$pkgname.pdf
32 cp -r contrib ${pkgdir}/usr/share/doc/$pkgname/