summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8954d00b2ce612c45bf0a10733f6716692aba15 (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
# Maintainer: Márk Sági-Kazár <mark.sagikazar@gmail.com>
# Maintainer: Bence Hornák <hornak.bence@gmail.com>

pkgname=anyk
pkgver=2.97.0
subver=0.1
pkgrel=1
pkgdesc='Form fill program of the hungarian tax office (Általános Nyomtatványkitöltő (ÁNYK))'
arch=('any')
url='https://www.nav.gov.hu/nav/letoltesek/nyomtatvanykitolto_programok/nyomtatvany_apeh/keretprogramok/abevjava_install.html'
license=('proprietary')
depends=('java8-openjfx')
makedepends=('unzip')
provides=('abevjava')
source=("https://www.nav.gov.hu/data/cms526787/abevjava_install-${pkgver}-${subver}.noarch.rpm"
        'abevjava'
        'abevjavapath.cfg'
        'anyk.desktop'
        'setenv'
        'anyk.sysusers')
md5sums=('28d455ab179be44d746fbfd89e3472e2'
         '14e676f715c1008dda83ffd7c3a127ec'
         '5dae655a84d5dd76401011f5629d8f0f'
         '6b9574b344565494a70f2884805b95a4'
         '2e0fae11fbaa20d376a1228ac0262209'
         'b13f867247c573d73509520ffd02de56')

package() {
    install -d -m 755 "${pkgdir}/usr/bin"
    install -d -m 755 "${pkgdir}/usr/share/abevjava"
    install -d -m 755 "${pkgdir}/etc"

    unzip -oq "$srcdir/usr/share/abevjava/abevjava_install-$pkgver-${subver}.jar" -d "$srcdir"
    install -m 655 "${srcdir}"/setenv "${pkgdir}"/usr/share/abevjava
    install -m 655 "${srcdir}"/abevjava "${pkgdir}"/usr/bin
    install -m 644 "${srcdir}"/abevjavapath.cfg "${pkgdir}"/etc

    install -D "${srcdir}/${pkgname}".desktop "${pkgdir}"/usr/share/applications/"${pkgname}".desktop
	  install -Dm 644 "${srcdir}"/application/abevjava.png "${pkgdir}"/usr/share/pixmaps/abevjava.png

    cp -r "${srcdir}"/application/* "${pkgdir}"/usr/share/abevjava

    # Create anyk group and set download folder writable for group members
    install -Dm 644 "${srcdir}/anyk.sysusers" "${pkgdir}/usr/lib/sysusers.d/anyk.conf"
    
    chgrp -R 169 "${pkgdir}/usr/share/abevjava/abev"
    chgrp -R 169 "${pkgdir}/usr/share/abevjava/eroforrasok"
    chgrp -R 169 "${pkgdir}/usr/share/abevjava/nyomtatvanyok"
    chgrp -R 169 "${pkgdir}/usr/share/abevjava/upgrade"
    chgrp -R 169 "${pkgdir}/usr/share/abevjava/segitseg"

    chmod -R g=u "${pkgdir}/usr/share/abevjava/abev"
    chmod -R g=u "${pkgdir}/usr/share/abevjava/eroforrasok"
    chmod -R g=u "${pkgdir}/usr/share/abevjava/nyomtatvanyok"
    chmod -R g=u "${pkgdir}/usr/share/abevjava/upgrade"
    chmod -R g=u "${pkgdir}/usr/share/abevjava/segitseg"
    
    install=anyk.install
}