public
Last active

pymol-svn PKGBUILD

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
# Maintainter: Duca
# Contributor: yescalona
# Contributor: Carlos Ríos V. (aka crosvera)
# Contributor: Patrice Peterson <runiq at archlinux dot us>
 
pkgname=pymol-svn
_pkgname=pymol
pkgver=4043
pkgrel=2
pkgdesc="A user-sponsored molecular visualization system on an open-source foundation"
arch=('i686' 'x86_64')
url="http://pymol.sourceforge.net"
license=('GPL')
depends=('python2' 'freeglut' 'libpng' 'python2-numpy' 'python-pmw' 'freetype2' 'glew')
makedepends=('subversion')
provides=('pymol')
conflicts=('pymol')
source=(${_pkgname}::svn+https://pymol.svn.sourceforge.net/svnroot/${_pkgname}/trunk/${_pkgname}
pymol.desktop
pymol.install
pymol.jpg
pymol.sh
setup.py.patch)
md5sums=('SKIP'
'f8c01dc0dae50925df5e203031fd6718'
'60f02f33a00baffcba39c322c523ee28'
'b23132933cf6c821a2f33ed08aa287d8'
'a8e01f32b211dfd216a6f4747e49a4db'
'6b1eb16b7e02a884f7925e315613c3cb')
 
pkgver() {
cd ${_pkgname}
local ver="$(svnversion)"
printf "%s" "${ver//[[:alpha:]]}"
}
 
package() {
cd ${_pkgname}
 
python2 setup.py build install --root="${pkgdir}" --prefix=/usr
 
install -D -m755 ../pymol.sh "${pkgdir}/usr/bin/pymol"
install -D -m644 ../pymol.desktop "${pkgdir}/usr/share/applications/pymol.desktop"
install -D -m644 ../pymol.jpg "${pkgdir}/usr/share/pixmaps/pymol.jpg"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.