void-packages/srcpkgs/jmol/template
2018-08-18 05:26:13 +02:00

30 lines
1.1 KiB
Bash

# Template for 'jmol'
pkgname=jmol
version=14.29.17
revision=1
noarch=yes
maintainer="Brenton Horne <brentonhorne77@gmail.com>"
homepage="http://jmol.sourceforge.net/"
hostmakedepends="unzip"
depends="virtual?java-environment"
license="LGPL-2.1-or-later"
short_desc="An open-source Java/JavaScript-based molecule viewer"
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"
skip_extraction="Jmol_icon_128.png"
checksum="5347e0df0781620d8e1cb7b933cd76ca04d19aef57ceea1b153f2988e25eddb6
d84e5e4b5c9b440b3b90432db87e0d4bd5c8237d7d2891c174fac71f0a5a2127"
do_install() {
vmkdir usr/bin
vmkdir usr/share/${pkgname}
unzip jsmol.zip -d "${DESTDIR}"/usr/share/
rm jsmol.zip
cp *.jar jmol.sh "${DESTDIR}"/usr/share/${pkgname}
ln -s /usr/share/${pkgname}/${pkgname}.sh "$DESTDIR"/usr/bin/${pkgname}
vinstall "${FILESDIR}/${pkgname}.desktop" 644 usr/share/applications
vinstall "${XBPS_SRCDISTDIR}/${pkgname}-${version}/Jmol_icon_128.png" 644 usr/share/pixmaps jmol.png
}