diff options
author | Yigit Sever | 2024-08-16 10:44:47 +0200 |
---|---|---|
committer | Yigit Sever | 2024-08-16 10:44:47 +0200 |
commit | 2fb0f0dabee111104f12931f23dc79f411a1d879 (patch) | |
tree | 01dd678789b206581596f91864017640695e9d57 | |
parent | 9500b6eb299cfab01beeebada73cdb41458dbda2 (diff) | |
parent | 6bbe99213a2919208e327a88d92c0e0d3dff48b0 (diff) | |
download | packages-2fb0f0dabee111104f12931f23dc79f411a1d879.tar.gz packages-2fb0f0dabee111104f12931f23dc79f411a1d879.tar.bz2 packages-2fb0f0dabee111104f12931f23dc79f411a1d879.zip |
Add 'logisim-evolution/' from commit '6bbe99213a2919208e327a88d92c0e0d3dff48b0'
git-subtree-dir: logisim-evolution
git-subtree-mainline: 9500b6eb299cfab01beeebada73cdb41458dbda2
git-subtree-split: 6bbe99213a2919208e327a88d92c0e0d3dff48b0
-rw-r--r-- | logisim-evolution/.SRCINFO | 19 | ||||
-rw-r--r-- | logisim-evolution/.gitignore | 5 | ||||
-rw-r--r-- | logisim-evolution/PKGBUILD | 59 | ||||
-rw-r--r-- | logisim-evolution/logisim-evolution.install | 21 | ||||
-rw-r--r-- | logisim-evolution/logisim-evolution.sh | 3 |
5 files changed, 107 insertions, 0 deletions
diff --git a/logisim-evolution/.SRCINFO b/logisim-evolution/.SRCINFO new file mode 100644 index 0000000..d002064 --- /dev/null +++ b/logisim-evolution/.SRCINFO | |||
@@ -0,0 +1,19 @@ | |||
1 | pkgbase = logisim-evolution | ||
2 | pkgdesc = An educational tool for designing and simulating digital logic circuits | ||
3 | pkgver = 3.8.0 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/reds-heig/logisim-evolution | ||
6 | install = logisim-evolution.install | ||
7 | arch = any | ||
8 | license = GPL3 | ||
9 | makedepends = java-environment>=16 | ||
10 | depends = java-runtime>=16 | ||
11 | depends = hicolor-icon-theme | ||
12 | conflicts = logisim-evolution-git | ||
13 | conflicts = logisim-evolution-bin | ||
14 | source = logisim-evolution-3.8.0.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v3.8.0.tar.gz | ||
15 | source = logisim-evolution.sh | ||
16 | sha256sums = 7a49558a490a0df886b3ea488f12e4ea887a2ec8c278872dca39b2bebfaed3ee | ||
17 | sha256sums = d5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba | ||
18 | |||
19 | pkgname = logisim-evolution | ||
diff --git a/logisim-evolution/.gitignore b/logisim-evolution/.gitignore new file mode 100644 index 0000000..929582e --- /dev/null +++ b/logisim-evolution/.gitignore | |||
@@ -0,0 +1,5 @@ | |||
1 | resources | ||
2 | *.tar.* | ||
3 | *.jar | ||
4 | pkg/ | ||
5 | src/ | ||
diff --git a/logisim-evolution/PKGBUILD b/logisim-evolution/PKGBUILD new file mode 100644 index 0000000..63c353f --- /dev/null +++ b/logisim-evolution/PKGBUILD | |||
@@ -0,0 +1,59 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | # Contributor: maniacata <maniaciachao at gmail dot com> | ||
3 | # Contributor: Marcin Wieczorek <marcin@marcin.co> | ||
4 | # Contributor: Martin Thierer <thierer@web.de> | ||
5 | # Contributor: Amy Wilson <awils_1[at]xsmail[dot]com> | ||
6 | # Contributor: Simon Doppler <dopsi[at]dopsi[dot]ch> | ||
7 | # Contributor: Agustin Borgna <hello[at]aborgna.com.ar> | ||
8 | # Contributor: Marcel Korpel <marcel[dot]korpel[at]gmail> | ||
9 | # Contributor: Renan Birck <renan.ee.ufsm at gmail.com> | ||
10 | |||
11 | pkgname=logisim-evolution | ||
12 | pkgver=3.8.0 | ||
13 | pkgrel=1 | ||
14 | pkgdesc='An educational tool for designing and simulating digital logic circuits' | ||
15 | conflicts=("${pkgname}-git" "${pkgname}-bin") | ||
16 | arch=('any') | ||
17 | url="https://github.com/reds-heig/logisim-evolution" | ||
18 | license=('GPL3') | ||
19 | depends=('java-runtime>=16' 'hicolor-icon-theme') | ||
20 | makedepends=('java-environment>=16') | ||
21 | |||
22 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" | ||
23 | "${pkgname}.sh") | ||
24 | sha256sums=('7a49558a490a0df886b3ea488f12e4ea887a2ec8c278872dca39b2bebfaed3ee' | ||
25 | 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') | ||
26 | |||
27 | install=$pkgname.install | ||
28 | |||
29 | build() { | ||
30 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
31 | ./gradlew shadowJar | ||
32 | } | ||
33 | |||
34 | prepare() { | ||
35 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
36 | sed -i 's/https/http/' "support/Flatpak/com.github.reds.LogisimEvolution.xml" | ||
37 | } | ||
38 | |||
39 | package() { | ||
40 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
41 | install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \ | ||
42 | "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" | ||
43 | install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \ | ||
44 | "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" | ||
45 | install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \ | ||
46 | "${pkgdir}/usr/share/applications/${pkgname}.desktop" | ||
47 | |||
48 | for SIZE in 16 32 48 128 256; do | ||
49 | install -Dm644 \ | ||
50 | "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \ | ||
51 | "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png" | ||
52 | done | ||
53 | |||
54 | install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" | ||
55 | |||
56 | sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \ | ||
57 | -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \ | ||
58 | -i "${pkgdir}/usr/share/applications/${pkgname}.desktop" | ||
59 | } | ||
diff --git a/logisim-evolution/logisim-evolution.install b/logisim-evolution/logisim-evolution.install new file mode 100644 index 0000000..9d2c85d --- /dev/null +++ b/logisim-evolution/logisim-evolution.install | |||
@@ -0,0 +1,21 @@ | |||
1 | pre_install() { | ||
2 | pre_upgrade | ||
3 | } | ||
4 | |||
5 | pre_upgrade() { | ||
6 | cat << EOF | ||
7 | |||
8 | This package requires java-runtime>= 16, if you have multiple jdks installed | ||
9 | please ensure the correct one is set; | ||
10 | |||
11 | # archlinux-java set java-16-openjdk | ||
12 | |||
13 | ----- | ||
14 | |||
15 | Please notice that this AUR repo is a build-from-source package. | ||
16 | |||
17 | The binary version can be found as 'logisim-evolution-bin'. | ||
18 | |||
19 | |||
20 | EOF | ||
21 | } | ||
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 @@ | |||
1 | #!/bin/sh | ||
2 | exec /usr/bin/java -jar /usr/share/java/logisim-evolution/logisim-evolution.jar "$@" | ||
3 | |||