3 #Contributors: yescalona, Carlos RÃos V. (aka crosvera)
8 pkgdesc="PyMOL is a molecular visualization system written in Python"
10 url="http://pymol.sourceforge.net/"
13 #python_ver=`${_python} -c 'import sys; print(sys.version[:3])'`
14 python_ver=${_python}.7
15 depends=("${_python}" 'freeglut' 'libpng' 'python2-numpy' 'python-pmw' 'freetype2' 'glew')
16 makedepends=("subversion")
17 source=(pymol.desktop pymol.install pymol.jpg pymol.sh)
18 md5sums=('f8c01dc0dae50925df5e203031fd6718' '60f02f33a00baffcba39c322c523ee28' 'b23132933cf6c821a2f33ed08aa287d8' 'a8e01f32b211dfd216a6f4747e49a4db')
20 _svntrunk=https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol
25 if [ -d $_svnmod/.svn ]; then
26 msg "SVN tree found, reverting changes and updating to -r$pkgver"
27 (cd $_svnmod && svn revert -R . && make clean; svn up -r $pkgver) || return 1
29 msg "Checking out SVN tree of -r$pkgver"
30 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
35 ${_python} setup.py build || return 1
36 ${_python} setup.py install --root=$pkgdir --prefix=/usr || return 1
37 ${_python} setup2.py install --root=$pkgdir --prefix=/usr || return 1
39 install -D -m755 ${startdir}/pymol.sh ${pkgdir}/usr/bin/pymol || return 1
40 install -D -m644 ${startdir}/pymol.desktop ${pkgdir}/usr/share/applications/pymol.desktop || return 1
41 install -D -m644 ${startdir}/pymol.jpg ${pkgdir}/usr/share/pixmaps/pymol.jpg || return 1