updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / pymacs / PKGBUILD
blob2d033761652f0baca0a0867ead906e2d7a92c164
1 # Contributor: Tiago Pierezan Camargo <tcamargo@gmail.com>
2 # Contributor: Richard Murri <admin@richardmurri.com>
3 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
5 pkgname=pymacs
6 pkgver=0.24_beta2_0
7 pkgrel=5
8 _gitrel=g016b0bc
9 pkgdesc='Interface between Emacs Lisp and Python.'
10 arch=('any')
11 url='http://pymacs.progiciels-bpi.ca/'
12 license=('GPL2')
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
19 build() {
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 
26 package() {
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/