From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- logisim-evolution | 1 - logisim-evolution/.SRCINFO | 20 ++++++++++ logisim-evolution/.gitignore | 3 ++ logisim-evolution/PKGBUILD | 60 +++++++++++++++++++++++++++++ logisim-evolution/logisim-evolution.install | 21 ++++++++++ logisim-evolution/logisim-evolution.sh | 3 ++ 6 files changed, 107 insertions(+), 1 deletion(-) delete mode 160000 logisim-evolution create mode 100644 logisim-evolution/.SRCINFO create mode 100644 logisim-evolution/.gitignore create mode 100644 logisim-evolution/PKGBUILD create mode 100644 logisim-evolution/logisim-evolution.install create mode 100644 logisim-evolution/logisim-evolution.sh (limited to 'logisim-evolution') diff --git a/logisim-evolution b/logisim-evolution deleted file mode 160000 index 0a8f3a9..0000000 --- a/logisim-evolution +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0a8f3a97e7c3d9b880ad07bdd19d50704fa10e0c diff --git a/logisim-evolution/.SRCINFO b/logisim-evolution/.SRCINFO new file mode 100644 index 0000000..cf74612 --- /dev/null +++ b/logisim-evolution/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = logisim-evolution + pkgdesc = An educational tool for designing and simulating digital logic circuits (build from source) + pkgver = 3.7.1 + pkgrel = 1 + url = https://github.com/reds-heig/logisim-evolution + install = logisim-evolution.install + arch = any + license = GPL3 + makedepends = java-environment>=16 + depends = java-runtime>=16 + depends = hicolor-icon-theme + provides = logisim-evolution + conflicts = logisim-evolution-git + conflicts = logisim-evolution-bin + source = logisim-evolution-3.7.1.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v3.7.1.tar.gz + source = logisim-evolution.sh + sha256sums = c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179 + sha256sums = d5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba + +pkgname = logisim-evolution diff --git a/logisim-evolution/.gitignore b/logisim-evolution/.gitignore new file mode 100644 index 0000000..b5ec025 --- /dev/null +++ b/logisim-evolution/.gitignore @@ -0,0 +1,3 @@ +resources +*.tar.* +*.jar \ No newline at end of file diff --git a/logisim-evolution/PKGBUILD b/logisim-evolution/PKGBUILD new file mode 100644 index 0000000..f1023ae --- /dev/null +++ b/logisim-evolution/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Yigit Sever +# Contributor: maniacata +# Contributor: Marcin Wieczorek +# Contributor: Martin Thierer +# Contributor: Amy Wilson +# Contributor: Simon Doppler +# Contributor: Agustin Borgna +# Contributor: Marcel Korpel +# Contributor: Renan Birck + +pkgname=logisim-evolution +pkgver=3.7.1 +pkgrel=1 +pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)' +provides=('logisim-evolution') +conflicts=('logisim-evolution-git' 'logisim-evolution-bin') +arch=('any') +url="https://github.com/reds-heig/logisim-evolution" +license=('GPL3') +depends=('java-runtime>=16' 'hicolor-icon-theme') +makedepends=('java-environment>=16') + +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" + "${pkgname}.sh") +sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179' + 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') + +install=$pkgname.install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./gradlew shadowJar +} + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + sed -i 's/https/http/' "support/Flatpak/com.github.reds.LogisimEvolution.xml" +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \ + "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" + install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \ + "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" + install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" + + for SIZE in 16 32 48 128 256; do + install -Dm644 \ + "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \ + "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png" + done + + install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" + + sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \ + -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \ + -i "${pkgdir}/usr/share/applications/${pkgname}.desktop" +} diff --git a/logisim-evolution/logisim-evolution.install b/logisim-evolution/logisim-evolution.install new file mode 100644 index 0000000..12fd321 --- /dev/null +++ b/logisim-evolution/logisim-evolution.install @@ -0,0 +1,21 @@ +pre_install() { + pre_upgrade +} + +pre_upgrade() { + cat << EOF + + This package requires java-runtime>= 16, if you have multiple jdks installed + please ensure the correct one is set; + + # archlinux-java set java-16-openjdk + + ----- + + Please notice that this AUR repo is a build-from-source package. + + However, binary version (the previous one) can be found as 'logisim-evolution-bin'. + + +EOF +} diff --git a/logisim-evolution/logisim-evolution.sh b/logisim-evolution/logisim-evolution.sh new file mode 100644 index 0000000..662df43 --- /dev/null +++ b/logisim-evolution/logisim-evolution.sh @@ -0,0 +1,3 @@ +#!/bin/sh +exec /usr/bin/java -jar /usr/share/java/logisim-evolution/logisim-evolution.jar "$@" + -- cgit v1.2.3-70-g09d2