diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | logisim-evolution.desktop | 9 | ||||
-rw-r--r-- | logisim-evolution.sh | 3 | ||||
-rw-r--r-- | logisim-evolution.xml | 9 |
5 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..bf7ae77 --- /dev/null +++ b/.SRCINFO | |||
@@ -0,0 +1,25 @@ | |||
1 | # Generated by mksrcinfo v8 | ||
2 | # Mon Oct 23 08:37:46 UTC 2017 | ||
3 | pkgbase = logisim-evolution | ||
4 | pkgdesc = An educational tool for designing and simulating digital logic circuits | ||
5 | pkgver = 2.14.2 | ||
6 | pkgrel = 1 | ||
7 | url = https://github.com/reds-heig/logisim-evolution | ||
8 | arch = any | ||
9 | license = GPL3 | ||
10 | makedepends = java-environment-openjdk=8 | ||
11 | makedepends = apache-ant | ||
12 | depends = java-runtime=8 | ||
13 | depends = bash | ||
14 | depends = hicolor-icon-theme | ||
15 | source = logisim-evolution-2.14.2.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v2.14.2.tar.gz | ||
16 | source = logisim-evolution.desktop | ||
17 | source = logisim-evolution.sh | ||
18 | source = logisim-evolution.xml | ||
19 | sha256sums = 9c58ce45822c3c0e85a723de2c22c0d0329b82c1b367e06a9ae880f0b1bda202 | ||
20 | sha256sums = 086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b | ||
21 | sha256sums = 35b6b4da515f1c5619d35bbedc1469e5ec5b823bf486efdfbb5b705b65e10656 | ||
22 | sha256sums = f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec | ||
23 | |||
24 | pkgname = logisim-evolution | ||
25 | |||
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a7aaa58 --- /dev/null +++ b/PKGBUILD | |||
@@ -0,0 +1,46 @@ | |||
1 | # Maintainer: Simon Doppler <dopsi[at]dopsi[dot]ch> | ||
2 | # Contributor: Agustin Borgna <hello[at]aborgna.com.ar> | ||
3 | # Contributor: Marcel Korpel <marcel[dot]korpel[at]gmail> | ||
4 | # Contributor: Renan Birck <renan.ee.ufsm at gmail.com> | ||
5 | |||
6 | pkgname=logisim-evolution | ||
7 | pkgver=2.14.2 | ||
8 | pkgrel=1 | ||
9 | pkgdesc='An educational tool for designing and simulating digital logic circuits' | ||
10 | arch=('any') | ||
11 | url="https://github.com/reds-heig/logisim-evolution" | ||
12 | license=('GPL3') | ||
13 | depends=('java-runtime=8' 'bash' 'hicolor-icon-theme') | ||
14 | makedepends=('java-environment-openjdk=8' 'apache-ant') | ||
15 | |||
16 | source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" | ||
17 | 'logisim-evolution.desktop' | ||
18 | 'logisim-evolution.sh' | ||
19 | 'logisim-evolution.xml') | ||
20 | sha256sums=('9c58ce45822c3c0e85a723de2c22c0d0329b82c1b367e06a9ae880f0b1bda202' | ||
21 | '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b' | ||
22 | '35b6b4da515f1c5619d35bbedc1469e5ec5b823bf486efdfbb5b705b65e10656' | ||
23 | 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec') | ||
24 | |||
25 | build() { | ||
26 | cd "$srcdir/${pkgname}-${pkgver}" | ||
27 | |||
28 | ant jar | ||
29 | } | ||
30 | |||
31 | package() { | ||
32 | cd "$srcdir" | ||
33 | |||
34 | install -Dm644 ${pkgname}-${pkgver}/logisim-evolution.jar \ | ||
35 | "${pkgdir}/usr/share/java/logisim-evolution/logisim-evolution.jar" | ||
36 | install -Dm644 logisim-evolution.xml \ | ||
37 | "${pkgdir}/usr/share/mime/packages/logisim-evolution.xml" | ||
38 | install -Dm644 logisim-evolution.desktop \ | ||
39 | "${pkgdir}/usr/share/applications/logisim-evolution.desktop" | ||
40 | for SIZE in 16 20 24 48 64 128; do | ||
41 | install -Dm644 ${pkgname}-${pkgver}/resources/logisim/img/logisim-icon-${SIZE}.png \ | ||
42 | "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/logisim-evolution.png" | ||
43 | done | ||
44 | install -Dm755 logisim-evolution.sh "${pkgdir}/usr/bin/logisim-evolution" | ||
45 | } | ||
46 | |||
diff --git a/logisim-evolution.desktop b/logisim-evolution.desktop new file mode 100644 index 0000000..3bda6b1 --- /dev/null +++ b/logisim-evolution.desktop | |||
@@ -0,0 +1,9 @@ | |||
1 | [Desktop Entry] | ||
2 | Name=Logisim Evolution | ||
3 | Comment=An educational tool for designing and simulating digital logic circuits | ||
4 | Exec=/usr/bin/logisim-evolution | ||
5 | Icon=logisim-evolution | ||
6 | Terminal=false | ||
7 | Type=Application | ||
8 | Categories=Education | ||
9 | MimeType=application/x-logisim-evolution | ||
diff --git a/logisim-evolution.sh b/logisim-evolution.sh new file mode 100644 index 0000000..f1e2e73 --- /dev/null +++ b/logisim-evolution.sh | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | exec "$JAVA_HOME/bin/java" -jar '/usr/share/java/logisim-evolution/logisim-evolution.jar' "$@" | ||
3 | |||
diff --git a/logisim-evolution.xml b/logisim-evolution.xml new file mode 100644 index 0000000..92a3586 --- /dev/null +++ b/logisim-evolution.xml | |||
@@ -0,0 +1,9 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> | ||
3 | <mime-type type="application/x-logisim-evolution"> | ||
4 | <sub-class-of type="application/xml"/> | ||
5 | <comment>Logisim Evolution Circuits</comment> | ||
6 | <icon name="logisim-evolution"/> | ||
7 | <glob pattern="*.circ"/> | ||
8 | </mime-type> | ||
9 | </mime-info> | ||