35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'jmol'
|
|
pkgname=jmol
|
|
version=14.29.29
|
|
revision=1
|
|
noarch=yes
|
|
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="840f96f557a768f4fd021c4c552c6e1f5527e44d5a5500fde7db3dc569396048
|
|
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
|
|
}
|