void-packages/srcpkgs/logisim-evolution/template

29 lines
1.1 KiB
Bash

# Template file for 'logisim-evolution'
pkgname=logisim-evolution
version=3.9.0
revision=1
hostmakedepends="openjdk21 gradle"
depends="openjdk21-jre"
short_desc="Digital logic design tool and simulator"
maintainer="voidbert <humbertogilgomes@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/logisim-evolution/logisim-evolution"
changelog="https://github.com/logisim-evolution/logisim-evolution/raw/master/CHANGES.md"
distfiles="https://github.com/logisim-evolution/logisim-evolution/archive/refs/tags/v${version}.tar.gz"
checksum=def2aa2f76545c1580d473b7a7f9259507bb2d2aae91a8d30ec903550780ecfc
do_build() {
. /etc/profile.d/jdk.sh
gradle --no-daemon shadowJar
}
do_install() {
vinstall build/libs/logisim-evolution-${version}-all.jar 0644 usr/lib/logisim-evolution logisim-evolution.jar
vbin ${FILESDIR}/logisim-evolution
vinstall artwork/logisim-evolution-icon.svg 0644 usr/share/icons/hicolor/scalable/apps com.github.reds.LogisimEvolution.svg
vinstall support/Flatpak/com.github.reds.LogisimEvolution.xml 0644 usr/share/mime/packages
vinstall support/Flatpak/com.github.reds.LogisimEvolution.desktop 0644 usr/share/applications
}