add pymol

This commit is contained in:
starsareintherose 2021-12-23 21:22:13 +00:00
parent 958ea482dd
commit bb8a4ae096
8 changed files with 140 additions and 0 deletions

View file

@ -0,0 +1,44 @@
# Maintainer: Lorenzo Gaifas <brisvag at gmail dot com>
_name=pymol-open-source
pkgname=pymol
pkgver=2.5.0
pkgrel=1
pkgdesc="Molecular visualization system on an Open Source foundation"
arch=('x86_64')
url="https://pymol.org/"
license=('custom')
depends=('freetype2' 'glew' 'glm' 'glut' 'python-numpy' 'tcsh')
makedepends=('desktop-file-utils' 'gendesk' 'libmmtf' 'msgpack-c' 'netcdf' 'git')
optdepends=('python-pmw: pmw based UI'
'python-pyqt5: Qt5 based UI'
'ffmpeg: MPEG encoding')
conflicts=('pymol')
provides=("${_name}=${pkgver}")
source=("https://github.com/schrodinger/pymol-open-source/archive/refs/tags/v${pkgver}.zip"
${pkgname}.png::"https://c.fsdn.com/allura/p/pymol/icon")
md5sums=('233dec168414cff2d7ae89ae7d8fb875'
'a6b62ae41658a772f75b3b123a8e5c0b')
prepare() {
# create desktop file
gendesk -f -n --pkgname "${_name}" --pkgdesc "${pkgdesc}" \
--name="PyMOL Molecular Graphics System" \
--categories="Science;Chemistry"
# suppress non-zero exit code that breaks makepkg
sed -i '/sys.exit/ s,2,0,' "${srcdir}/${_name}-${pkgver}/setup.py"
}
build() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}"
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"
}

View file

@ -0,0 +1,9 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
def post_build():
git_pkgbuild_commit()

View file

@ -0,0 +1,9 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: github
github: schrodinger/pymol-open-source
use_max_tag: true
prefix: 'v'

View file

@ -0,0 +1,11 @@
2.0.1-2:
python3.5 rebuild
2.0.1-1:
upstream update
2.0.0-2:
rebuild according to FS#42100
2.0.0-1:
upstream update

View file

@ -0,0 +1,21 @@
Copyright (c) 2007,2008 David M. Cooke <david.m.cooke@gmail.com>
Copyright (c) 2009,2010 Francesc Alted <faltet@pytables.org>
Copyright (c) 2011- See AUTHORS.txt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View file

@ -0,0 +1,29 @@
# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
# Contributor: kfgz <kfgz at interia dot pl>
# Contributor: Michael Krauss <hippodriver at gmx dot net>
# Contributor: dsa
pkgname=python-pmw
pkgver=2.0.1
pkgrel=6
pkgdesc="A toolkit for high-level compound widgets in Python using the Tkinter module"
arch=('any')
url="http://pmw.sourceforge.net/"
license=('MIT')
depends=('python' 'tk')
source=(${pkgname}-${pkgver}.tar.gz::https://pypi.python.org/packages/source/P/Pmw/Pmw-${pkgver}.tar.gz
"LICENSE.txt")
md5sums=('8080b0fabc731ff236f97e88e13b3938'
'28b047a148c1780eddcf4bed6b150123')
changelog="ChangeLog"
build() {
cd "Pmw-${pkgver}"
python setup.py build
}
package() {
cd "Pmw-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}"
install -Dm644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View file

@ -0,0 +1,9 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
def post_build():
git_pkgbuild_commit()

View file

@ -0,0 +1,8 @@
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
build_prefix: extra-x86_64
update_on:
- source: regex
url: "https://pypi.org/project/Pmw/"
regex: 'Pmw (\d+.\d+.\d+)'