void-packages/srcpkgs/jmol/template
2019-03-31 16:20:59 -03:00

34 lines
1.1 KiB
Bash

# Template file for 'jmol'
pkgname=jmol
version=14.29.32
revision=1
hostmakedepends="unzip"
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="b19dd27eb6cd23ed53e2ca8532fb3b3206155f55cc191cfa68577a49ab46f44a
d84e5e4b5c9b440b3b90432db87e0d4bd5c8237d7d2891c174fac71f0a5a2127"
skip_extraction="Jmol_icon_128.png"
nocross="openjdk is nocross"
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="java not available";;
esac
do_install() {
vmkdir usr/bin
vmkdir usr/share/jmol
unzip jsmol.zip -d "${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
}