New package: marvin-18.18.0 (#1415)

This commit is contained in:
Brenton Horne 2018-08-04 05:33:38 +10:00 committed by cr6git
parent b842df996f
commit 613c187db2
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=MarvinSketch
Exec=MarvinSketch %f
Icon=MarvinSketch
MimeType=text/xml;text/plain;chemical/x-cml;chemical/x-mdl-molfile;chemical/x-mdl-sdfile;chemical/x-mol2;chemical/x-pdb;chemical/x-xyz;chemical/x-mdl-rdfile;chemical/x-mdl-rxnfile;chemical/x-inchi;
Categories=Education;Science;Chemistry;

View File

@ -0,0 +1,8 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=MarvinView
Exec=MarvinView %f
Icon=MarvinView
MimeType=text/xml;text/plain;chemical/x-cml;chemical/x-mdl-molfile;chemical/x-mdl-sdfile;chemical/x-mol2;chemical/x-pdb;chemical/x-xyz;chemical/x-mdl-rdfile;chemical/x-mdl-rxnfile;chemical/x-inchi;
Categories=Education;Science;Chemistry;

33
srcpkgs/marvin/template Normal file
View File

@ -0,0 +1,33 @@
# Template for Marvin
pkgname=marvin
version=18.18.0
revision=1
maintainer="Brenton Horne <brentonhorne77@gmail.com>"
homepage="https://chemaxon.com/products/marvin"
license="marvin"
depends="virtual?java-environment"
short_desc="Skeletal structure drawing program by ChemAxon"
only_for_archs="i686 x86_64"
repository=nonfree
restricted=yes
nostrip=yes
_filename="marvin_linux_$(echo $version | sed 's/.[0-9]*$//g').deb"
distfiles="https://dl.chemaxon.com/marvin/${version}/${_filename}"
checksum="d34306eb9e81c3173d2196e5c2144bbc7e99927a2e2233dda7c9df9ca3f9d1e7"
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_filename}
tar xf data.tar.gz
}
do_install() {
cp -r opt ${DESTDIR}
mkdir -p ${DESTDIR}/usr/{bin,share/pixmaps}
ln -sf /opt/chemaxon/marvinsuite/.install4j/Marvin{Sketch,View}.png ${DESTDIR}/usr/share/pixmaps/
vinstall ${FILESDIR}/MarvinSketch.desktop 755 usr/share/applications
vinstall ${FILESDIR}/MarvinView.desktop 755 usr/share/applications
ln -sf /opt/chemaxon/marvinsuite/MarvinSketch ${DESTDIR}/usr/bin/
ln -sf /opt/chemaxon/marvinsuite/MarvinView ${DESTDIR}/usr/bin/
}