[arch-commits] Commit in pymol/repos (4 files)
Evgeniy Alekseev
arcanis at nymeria.archlinux.org
Tue Nov 12 21:59:10 UTC 2013
Date: Tuesday, November 12, 2013 @ 22:59:10
Author: arcanis
Revision: 100887
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
pymol/repos/community-staging-i686/
pymol/repos/community-staging-i686/PKGBUILD
(from rev 100886, pymol/trunk/PKGBUILD)
pymol/repos/community-staging-x86_64/
pymol/repos/community-staging-x86_64/PKGBUILD
(from rev 100886, pymol/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
Copied: pymol/repos/community-staging-i686/PKGBUILD (from rev 100886, pymol/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2013-11-12 21:59:10 UTC (rev 100887)
@@ -0,0 +1,42 @@
+# Maintainer: Evgeniy Alekseev <arcanis dot arch at gmail dot com>
+# Contributor: graysky
+# Contributor: Tomasz Żok <tomasz dot zok at gmail dot com>
+
+pkgname=pymol
+pkgver=1.6.0.0
+pkgrel=1
+pkgdesc="A USER-SPONSORED molecular visualization system on an OPEN-SOURCE foundation"
+arch=('i686' 'x86_64')
+url="http://pymol.org/"
+license=('custom')
+depends=('glut' 'glew' 'mesa' 'python2-pmw' 'tcl' 'tcsh' 'tk')
+source=("http://downloads.sourceforge.net/project/pymol/pymol/1.6/pymol-v${pkgver}.tar.bz2")
+md5sums=('6f5db5beea7497f5a414c8e0cf1ae53d')
+
+prepare() {
+ # suppress non-zero exit code that breaks makepkg
+ sed -i '/sys.exit/ s,2,0,' "${srcdir}/${pkgname}/setup.py"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ python2 setup.py 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"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: pymol/repos/community-staging-x86_64/PKGBUILD (from rev 100886, pymol/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2013-11-12 21:59:10 UTC (rev 100887)
@@ -0,0 +1,42 @@
+# Maintainer: Evgeniy Alekseev <arcanis dot arch at gmail dot com>
+# Contributor: graysky
+# Contributor: Tomasz Żok <tomasz dot zok at gmail dot com>
+
+pkgname=pymol
+pkgver=1.6.0.0
+pkgrel=1
+pkgdesc="A USER-SPONSORED molecular visualization system on an OPEN-SOURCE foundation"
+arch=('i686' 'x86_64')
+url="http://pymol.org/"
+license=('custom')
+depends=('glut' 'glew' 'mesa' 'python2-pmw' 'tcl' 'tcsh' 'tk')
+source=("http://downloads.sourceforge.net/project/pymol/pymol/1.6/pymol-v${pkgver}.tar.bz2")
+md5sums=('6f5db5beea7497f5a414c8e0cf1ae53d')
+
+prepare() {
+ # suppress non-zero exit code that breaks makepkg
+ sed -i '/sys.exit/ s,2,0,' "${srcdir}/${pkgname}/setup.py"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ python2 setup.py 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"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list