void-packages/srcpkgs/marvin/template

35 lines
1.1 KiB
Bash
Raw Normal View History

2018-08-03 21:33:38 +02:00
# Template for Marvin
pkgname=marvin
2018-08-22 09:26:02 +02:00
version=18.20.0
2018-08-03 21:33:38 +02:00
revision=1
2018-08-14 10:14:22 +02:00
noarch=yes
2018-08-03 21:33:38 +02:00
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
2018-08-17 22:48:38 +02:00
_filename="marvin_linux_${version%.*}.deb"
2018-08-03 21:33:38 +02:00
distfiles="https://dl.chemaxon.com/marvin/${version}/${_filename}"
2018-08-22 09:26:02 +02:00
checksum=bbb25cbd8307f1f081136397c9f82be114426b96f973b8079980c46e6d62aadc
2018-08-03 21:33:38 +02:00
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/
}