diff options
author | Lorenzo Gaifas | 2019-06-19 12:41:16 +0200 |
---|---|---|
committer | Lorenzo Gaifas | 2019-06-19 12:41:16 +0200 |
commit | 7c275d1e39fbb7c079ff3bfd33bab8274443474f (patch) | |
tree | d378a3fa60b12089eea965ed70b309e7a0d8cd4c | |
download | aur-7c275d1e39fbb7c079ff3bfd33bab8274443474f.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2bd4ee1d574f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = pymol-git + pkgdesc = Molecular visualization system on an Open Source foundation + pkgver = r4455.9ac17c0a + pkgrel = 1 + url = https://pymol.org/ + arch = x86_64 + license = custom + makedepends = desktop-file-utils + makedepends = gendesk + makedepends = libmmtf + makedepends = msgpack-c + makedepends = git + depends = freetype2 + depends = glew + depends = glm + depends = glut + depends = python-numpy + depends = tcsh + optdepends = python-pmw: pmw based UI + optdepends = python-pyqt5: Qt5 based UI + provides = pymol + conflicts = pymol + source = git+https://github.com/schrodinger/pymol-open-source.git + source = pymol.png::https://c.fsdn.com/allura/p/pymol/icon + sha512sums = SKIP + sha512sums = SKIP + +pkgname = pymol-git + + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fd396ecba2bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Lorenzo Gaifas <brisvag at gmail dot com> +pkgname=pymol-git +_pkgname=pymol +pkgver=r4455.9ac17c0a +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' 'git') +optdepends=('python-pmw: pmw based UI' + 'python-pyqt5: Qt5 based UI') +conflicts=('pymol') +provides=('pymol') +source=("git+https://github.com/schrodinger/pymol-open-source.git" + ${_pkgname}.png::"https://c.fsdn.com/allura/p/pymol/icon") +md5sums=('SKIP' + 'SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}-open-source/" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + # create desktop file + gendesk -f -n --pkgname "${_pkgname}" --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}/${_pkgname}-open-source/setup.py" +} + +build() { + cd "${srcdir}/${_pkgname}-open-source/" + python setup.py build +} + +package() { + cd "${srcdir}/${_pkgname}-open-source/" + 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" +} + |