1 # Maintainer: Tomasz Żok <tomasz.zok[at]gmail.com>
5 pkgdesc="A USER-SPONSORED molecular visualization system on an OPEN-SOURCE foundation"
7 url="http://pymol.org/"
8 license=('custom:Python License (CNRI Python License)')
10 depends=('glut' 'glew' 'libpng' 'tcl' 'tk' 'python2' 'freetype2' 'python-pmw')
14 conflicts=('pymol-svn')
20 source=("http://sourceforge.net/projects/pymol/files/pymol/$pkgver/pymol-v$pkgver.tar.bz2/download")
22 md5sums=(deaa57c3791fdcae6e11abe4d4641187)
26 python2 setup.py build
30 python_ver=$(python2 -c 'import sys; print(sys.version[:3])')
31 export PYTHONPATH="$pkgdir/usr/lib/python$python_ver/site-packages"
34 python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
35 python2 setup2.py install --prefix=/usr --root="$pkgdir" || return 1
36 sed -i "s|$pkgdir||g" pymol
37 install -D -m755 pymol "$pkgdir/usr/bin/pymol" || return 1
40 # vim:set ts=2 sw=2 et: