From f72cb0ced39aca827b5269eba5455dbf846410e2 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Fri, 3 Jan 2014 03:19:39 +0000 Subject: Fri Jan 3 03:17:00 UTC 2014 --- community/pymol/PKGBUILD | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'community/pymol/PKGBUILD') diff --git a/community/pymol/PKGBUILD b/community/pymol/PKGBUILD index 352ea5f1c..aa1d7a270 100644 --- a/community/pymol/PKGBUILD +++ b/community/pymol/PKGBUILD @@ -1,10 +1,11 @@ +# $Id: PKGBUILD 103273 2014-01-02 00:34:19Z arcanis $ # Maintainer: Evgeniy Alekseev # Contributor: graysky # Contributor: Tomasz Żok pkgname=pymol pkgver=1.6.0.0 -pkgrel=2 +pkgrel=3 pkgdesc="A USER-SPONSORED molecular visualization system on an OPEN-SOURCE foundation" arch=('i686' 'x86_64') url="http://pymol.org/" @@ -15,7 +16,12 @@ md5sums=('6f5db5beea7497f5a414c8e0cf1ae53d') prepare() { # 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" } build() { @@ -26,16 +32,8 @@ 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" } -- cgit v1.2.3-54-g00ecf