diff options
Diffstat (limited to 'community/pymol/PKGBUILD')
-rw-r--r-- | community/pymol/PKGBUILD | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/community/pymol/PKGBUILD b/community/pymol/PKGBUILD index 352ea5f1c..65a78d1a7 100644 --- a/community/pymol/PKGBUILD +++ b/community/pymol/PKGBUILD @@ -1,21 +1,38 @@ -# Maintainer: Evgeniy Alekseev <arcanis dot arch at gmail dot com> +# $Id: PKGBUILD 105733 2014-02-14 15:40:11Z arcanis $ +# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com> # Contributor: graysky # Contributor: Tomasz Żok <tomasz dot zok at gmail dot com> pkgname=pymol -pkgver=1.6.0.0 +pkgver=1.7.0.0 pkgrel=2 -pkgdesc="A USER-SPONSORED molecular visualization system on an OPEN-SOURCE foundation" +pkgdesc="Molecular visualization system on an Open Source foundation" arch=('i686' 'x86_64') url="http://pymol.org/" license=('custom') -depends=('glut' 'glew' 'mesa' 'python-pmw' 'tcl' 'tcsh' 'tk') -source=("http://downloads.sourceforge.net/project/pymol/pymol/1.6/pymol-v${pkgver}.tar.bz2") -md5sums=('6f5db5beea7497f5a414c8e0cf1ae53d') +depends=('glew' 'glut' 'mesa' 'python2-numpy' 'python2-pmw' 'tcsh') +makedepends=('desktop-file-utils' 'gendesk') +source=("http://downloads.sourceforge.net/project/pymol/pymol/1.7/pymol-v${pkgver}.tar.bz2" + "${pkgname}-38899.patch") +install="${pkgname}.install" +md5sums=('36fc735f6104e59802f109d0d25b6676' + '1f8152c4604ba2939b24e25a022937ca') prepare() { + # create desktop file + gendesk -f --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" --name="PyMOL" --categories="Science;Chemistry" + # suppress non-zero exit code that breaks makepkg - sed -i '/sys.exit/ s,2,0,' "${srcdir}/${pkgname}/setup.py" + sed -i '/sys.exit/ s,2,0,' "${srcdir}/pymol/setup.py" + # change python to python2 + sed -i "s|python|python2|g" "${srcdir}/pymol/test/cyg" + sed -i "s|python|python2|g" "${srcdir}/pymol/test/run" + sed -i "s|python|python2|g" "${srcdir}/pymol/test/show" + sed -i "s|python|python2|g" "${srcdir}/pymol/modules/pmg_tk/startup/apbs_tools.py" + + # fix FS#38899 + patch -p0 -i "${pkgname}-38899.patch" + mv "${srcdir}/${pkgname}/modules/web" "${srcdir}/${pkgname}/modules/pymolweb" } build() { @@ -25,18 +42,12 @@ build() { package() { cd "${srcdir}/${pkgname}" - python2 setup.py install --prefix="usr/" --root="${pkgdir}" - - sed -i "s|${pkgdir}||g" pymol - install -D -m755 "pymol" "${pkgdir}/usr/bin/pymol" - - # change python to python2 - sed -i "s|python|python2|g" "${pkgdir}/usr/lib/python2.7/site-packages/pymol/pymol_path/test/run" - sed -i "s|python|python2|g" "${pkgdir}/usr/lib/python2.7/site-packages/pymol/pymol_path/test/cyg" - sed -i "s|python|python2|g" "${pkgdir}/usr/lib/python2.7/site-packages/pmg_tk/startup/apbs_tools.py" - sed -i "s|python|python2|g" "${pkgdir}/usr/lib/python2.7/site-packages/pymol/pymol_path/test/show" - - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + python2 setup.py install --prefix=/usr --root="${pkgdir}" + sed -i "s|"${pkgdir}"||g" pymol + install -Dm755 "pymol" "${pkgdir}/usr/bin/pymol" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "${srcdir}/pymol.desktop" "${pkgdir}/usr/share/applications/pymol.desktop" + install -Dm644 "${srcdir}/pymol.png" "${pkgdir}/usr/share/pixmaps/pymol.png" } # vim:set ts=2 sw=2 et: |