diff options
author | Yigit Sever | 2021-10-29 01:30:24 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 01:30:24 +0300 |
commit | 31d147b20c67d95a9e306d0749200bf964ac42af (patch) | |
tree | b0fbe2bb5aa0fec9983746a91d188643ca93466d /logisim-evolution | |
parent | 4a31e5e0f3442a4a5ec9fba94f7bbc2c88312c69 (diff) | |
download | packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.gz packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.bz2 packages-31d147b20c67d95a9e306d0749200bf964ac42af.zip |
Use actual files instead of submodules
Diffstat (limited to 'logisim-evolution')
m--------- | logisim-evolution | 13 | ||||
-rw-r--r-- | logisim-evolution/.SRCINFO | 20 | ||||
-rw-r--r-- | logisim-evolution/.gitignore | 3 | ||||
-rw-r--r-- | logisim-evolution/PKGBUILD | 60 | ||||
-rw-r--r-- | logisim-evolution/logisim-evolution.install | 21 | ||||
-rw-r--r-- | logisim-evolution/logisim-evolution.sh | 3 |
6 files changed, 107 insertions, 13 deletions
diff --git a/logisim-evolution b/logisim-evolution deleted file mode 160000 | |||
Subproject 0a8f3a97e7c3d9b880ad07bdd19d50704fa10e0 | |||
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 @@ | |||
1 | pkgbase = logisim-evolution | ||
2 | pkgdesc = An educational tool for designing and simulating digital logic circuits (build from source) | ||
3 | pkgver = 3.7.1 | ||
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 | provides = logisim-evolution | ||
13 | conflicts = logisim-evolution-git | ||
14 | conflicts = logisim-evolution-bin | ||
15 | source = logisim-evolution-3.7.1.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v3.7.1.tar.gz | ||
16 | source = logisim-evolution.sh | ||
17 | sha256sums = c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179 | ||
18 | sha256sums = d5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba | ||
19 | |||
20 | 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 @@ | |||
1 | resources | ||
2 | *.tar.* | ||
3 | *.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 @@ | |||
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.7.1 | ||
13 | pkgrel=1 | ||
14 | pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)' | ||
15 | provides=('logisim-evolution') | ||
16 | conflicts=('logisim-evolution-git' 'logisim-evolution-bin') | ||
17 | arch=('any') | ||
18 | url="https://github.com/reds-heig/logisim-evolution" | ||
19 | license=('GPL3') | ||
20 | depends=('java-runtime>=16' 'hicolor-icon-theme') | ||
21 | makedepends=('java-environment>=16') | ||
22 | |||
23 | source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" | ||
24 | "${pkgname}.sh") | ||
25 | sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179' | ||
26 | 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') | ||
27 | |||
28 | install=$pkgname.install | ||
29 | |||
30 | build() { | ||
31 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
32 | ./gradlew shadowJar | ||
33 | } | ||
34 | |||
35 | prepare() { | ||
36 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
37 | sed -i 's/https/http/' "support/Flatpak/com.github.reds.LogisimEvolution.xml" | ||
38 | } | ||
39 | |||
40 | package() { | ||
41 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
42 | install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \ | ||
43 | "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" | ||
44 | install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \ | ||
45 | "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" | ||
46 | install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \ | ||
47 | "${pkgdir}/usr/share/applications/${pkgname}.desktop" | ||
48 | |||
49 | for SIZE in 16 32 48 128 256; do | ||
50 | install -Dm644 \ | ||
51 | "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \ | ||
52 | "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png" | ||
53 | done | ||
54 | |||
55 | install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" | ||
56 | |||
57 | sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \ | ||
58 | -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \ | ||
59 | -i "${pkgdir}/usr/share/applications/${pkgname}.desktop" | ||
60 | } | ||
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 @@ | |||
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 | However, binary version (the previous one) 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 | |||