void-packages/srcpkgs/eclipse/template

40 lines
1.3 KiB
Bash

# Template file for 'eclipse'
pkgname=eclipse
version=4.30.0
revision=2
#code name of version
_release=2023-12
archs="x86_64"
depends="openjdk11 gtk+3 libwebkit2gtk41 libXtst
hicolor-icon-theme desktop-file-utils"
short_desc="IDE for Java and other languages"
maintainer="mobinmob <mobinmob@disroot.org>"
license="EPL-1.0"
homepage="https://eclipse.org"
make_dirs="/usr/lib/eclipse/dropins 0770 root users"
_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}-R-linux-gtk-x86_64.tar.gz"
checksum=09fda3acd8da911b5e18efd6d7ca27784f440ccdd52f28bf94869f81f7e9ad47
nopie=yes
nostrip=yes
allow_unknown_shlibs=yes # glibc sonames issue
python_version=3
do_install() {
vmkdir usr/lib/eclipse
cp -a ${wrksrc}/* ${DESTDIR}/usr/lib/eclipse
sed -i '6i-vm' ${DESTDIR}/usr/lib/eclipse/eclipse.ini
sed -i '7i/usr/lib/jvm/openjdk11/bin' ${DESTDIR}/usr/lib/eclipse/eclipse.ini
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
}