void-packages/srcpkgs/jmol/template

35 lines
1.1 KiB
Bash

# Template file for 'jmol'
pkgname=jmol
version=14.29.53
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="38632b847d4461548a1738aaf14bafa52d2790a0261868a02d6c3fc6f28db371
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
}