blob: 2f17e866d081444813a2d4eeb94f11e1346f36f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Yigit Sever <yigit at yigitsever dot com>
# Contributor: maniacata <maniaciachao at gmail dot com>
# Contributor: Marcin Wieczorek <marcin@marcin.co>
# Contributor: Martin Thierer <thierer@web.de>
# Contributor: Amy Wilson <awils_1[at]xsmail[dot]com>
# Contributor: Simon Doppler <dopsi[at]dopsi[dot]ch>
# Contributor: Agustin Borgna <hello[at]aborgna.com.ar>
# Contributor: Marcel Korpel <marcel[dot]korpel[at]gmail>
# Contributor: Renan Birck <renan.ee.ufsm at gmail.com>
pkgname=logisim-evolution
pkgver=3.7.0
pkgrel=2
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=('181694b68578bf0ecc9e6498e9246e49e60e926b4b047094419baf2f4bb721fb'
'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"
}
sha256sums=('7bf16724e11bc4e441c1a4a2c207a629a6933d7941898908847a668bd8b9c043'
'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba')
|