void-packages/srcpkgs/eclipse/template
2019-12-25 10:27:24 +01:00

33 lines
1 KiB
Bash

# Template file for 'eclipse'
pkgname=eclipse
version=4.14
revision=1
#code name of version
_release=2019-12
archs="x86_64"
wrksrc="eclipse"
depends="virtual?java-environment unzip gtk+3 webkit2gtk libXtst hicolor-icon-theme desktop-file-utils"
short_desc="IDE for Java and other languages"
maintainer="Orphaned <orphan@voidlinux.org>"
license="EPL-1.0"
homepage="https://eclipse.org"
nopie=yes
_patch=R
_edition=java
_mirror="http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse"
distfiles="${_mirror}/technology/epp/downloads/release/${_release}/${_patch}/eclipse-${_edition}-${_release}-${_patch}-linux-gtk-x86_64.tar.gz"
checksum=eea78b2daab7c5d3e11cd86d0782023a05f7e173265f470536357ef97cd31a29
do_install() {
vmkdir usr/lib/eclipse
cp -a ${wrksrc}/* ${DESTDIR}/usr/lib/eclipse
vbin ${FILESDIR}/eclipse.sh eclipse
vinstall ${FILESDIR}/eclipse.desktop 644 usr/share/applications
for _i in 16 32 48 256; do
install -Dm644 plugins/org.eclipse.platform_*/eclipse${_i}.png \
${DESTDIR}/usr/share/icons/hicolor/${_i}x${_i}/apps/eclipse.png
done
}