mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
New package: jmol-14.29.17 (#1493)
This commit is contained in:
parent
93bf649709
commit
065f0b2afd
2 changed files with 40 additions and 0 deletions
10
srcpkgs/jmol/files/jmol.desktop
Normal file
10
srcpkgs/jmol/files/jmol.desktop
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Jmol
|
||||||
|
Comment=An open-source Java viewer for chemical structures in 3D
|
||||||
|
GenericName=Jmol
|
||||||
|
Exec=jmol %f
|
||||||
|
Icon=jmol
|
||||||
|
Terminal=0
|
||||||
|
Type=Application
|
||||||
|
MimeType=text/plain;chemical/x-mdl-molfile;chemical/x-cif;chemical/x-cml;application/xml;application/x-aportisdoc;chemical/x-gamess-output;chemical/x-gaussian-log;chemical/x-mopac-out;chemical/x-pdb;chemical/x-xyz;chemical/x-gaussian-cube;chemical/x-qchem-output;
|
||||||
|
Categories=Education;Science;Chemistry;
|
30
srcpkgs/jmol/template
Normal file
30
srcpkgs/jmol/template
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# Template for 'jmol'
|
||||||
|
pkgname=jmol
|
||||||
|
version=14.29.17
|
||||||
|
revision=1
|
||||||
|
noarch=yes
|
||||||
|
maintainer="Brenton Horne <brentonhorne77@gmail.com>"
|
||||||
|
homepage="http://jmol.sourceforge.net/"
|
||||||
|
hostmakedepends="unzip"
|
||||||
|
depends="virtual?java-environment"
|
||||||
|
license="LGPL-2.1-or-later"
|
||||||
|
short_desc="An open-source Java/JavaScript-based molecule viewer"
|
||||||
|
distfiles="${SOURCEFORGE_SITE}/jmol/Jmol/Version%20${version%.*}/Jmol%20${version}/Jmol-${version}-binary.tar.gz
|
||||||
|
http://jmol.sourceforge.net/images/Jmol_icon_128.png"
|
||||||
|
skip_extraction="Jmol_icon_128.png"
|
||||||
|
checksum="5347e0df0781620d8e1cb7b933cd76ca04d19aef57ceea1b153f2988e25eddb6
|
||||||
|
d84e5e4b5c9b440b3b90432db87e0d4bd5c8237d7d2891c174fac71f0a5a2127"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vmkdir usr/bin
|
||||||
|
vmkdir usr/share/${pkgname}
|
||||||
|
|
||||||
|
unzip jsmol.zip -d "${DESTDIR}"/usr/share/
|
||||||
|
rm jsmol.zip
|
||||||
|
|
||||||
|
cp *.jar jmol.sh "${DESTDIR}"/usr/share/${pkgname}
|
||||||
|
ln -s /usr/share/${pkgname}/${pkgname}.sh "$DESTDIR"/usr/bin/${pkgname}
|
||||||
|
|
||||||
|
vinstall "${FILESDIR}/${pkgname}.desktop" 644 usr/share/applications
|
||||||
|
vinstall "${XBPS_SRCDISTDIR}/${pkgname}-${version}/Jmol_icon_128.png" 644 usr/share/pixmaps jmol.png
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue