summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a3ebe85b84291812abdd19a5a255935ea037531 (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
# Maintainer: 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=2.15.0
pkgrel=2
pkgdesc='An educational tool for designing and simulating digital logic circuits'
arch=('any')
url="https://github.com/reds-heig/logisim-evolution"
license=('GPL3')
depends=('java-runtime=8' 'bash' 'hicolor-icon-theme')
makedepends=('java-environment-openjdk=8')

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz"
    'logisim-evolution.desktop'
    'logisim-evolution.sh'
    'logisim-evolution.xml')
sha256sums=('54c55415fce36801ed668c3bed64903444b0f6f3326091d63e84c253523fc8d8'
            '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b'
            'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba'
            'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec')

build() {
    cd "$srcdir/${pkgname}-${pkgver}"

    ./gradlew --no-daemon shadowJar
}

package() {
    cd "$srcdir"

    install -Dm644 "${pkgname}-${pkgver}/build/libs/${pkgname}-${pkgver}-all.jar" \
        "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
    install -Dm644 "${pkgname}.xml" \
        "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
    install -Dm644 "${pkgname}.desktop" \
        "${pkgdir}/usr/share/applications/logisim-evolution.desktop"
    for SIZE in 16 24 48 64 128; do
        install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \
            "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/logisim-evolution.png"
    done
    install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon.svg" \
        "${pkgdir}/usr/share/icons/hicolor/scalable/apps/logisim-evolution.svg"
    install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
}