35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'jmol'
|
|
pkgname=jmol
|
|
version=14.29.31
|
|
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="5265c980af313f57a5b13a3cfe32c28880b76fac3ba79a3d5c850418aa8bbd96
|
|
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
|
|
}
|