29 lines
1018 B
Bash
29 lines
1018 B
Bash
# Template file for 'jmol'
|
|
pkgname=jmol
|
|
version=14.31.20
|
|
revision=1
|
|
depends="virtual?java-environment"
|
|
short_desc="Open-source Java/JavaScript-based molecule viewer"
|
|
maintainer="Brenton Horne <brentonhorne77@gmail.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://jmol.sourceforge.net/"
|
|
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"
|
|
checksum="aaeb128b90fcbf708335ef594dce2ae3337b98dd03e5633fde94ce7cb7a79e9c
|
|
302b24c7b8898a04efd74c12592243d05e53b0643a66daf809e72bc590bf9b9e"
|
|
skip_extraction="Jmol_icon_128.png"
|
|
|
|
do_install() {
|
|
vmkdir usr/bin
|
|
vmkdir usr/share/jmol
|
|
|
|
bsdtar -xf jsmol.zip -C "${DESTDIR}"/usr/share/
|
|
rm jsmol.zip
|
|
|
|
cp *.jar jmol.sh "${DESTDIR}"/usr/share/jmol
|
|
ln -s /usr/share/jmol/jmol.sh "$DESTDIR"/usr/bin/jmol
|
|
|
|
vinstall "${FILESDIR}/jmol.desktop" 644 usr/share/applications
|
|
vinstall "${XBPS_SRCDISTDIR}/jmol-${version}/Jmol_icon_128.png" 644 usr/share/pixmaps jmol.png
|
|
}
|