summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8af809acdb7e48014683bfc92dda6c30a85ea317 (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
# Maintainer : pianoslum <pianoslum@mailbox.org>

pkgname=elster
pkgver=21.4.0
pkgrel=1
pkgdesc='Elektronische Steuererklärung - Ein Projekt der deutschen Steuerverwaltungen aller Länder und des Bundes zur Abwicklung der Steuererklärungen und Steueranmeldungen über das Internet (The official German software for electronic tax declaration)'
arch=('any')
url='https://www.elster.de/'
license=('proprietary')
depends=('wine' 'lib32-libldap')
provides=(elster)
options=(!strip)
source=(
    "https://download.elster.de/aktuell/ElsterFormularPrivat.msi"
    "elster"
    "LICENSE"
    "3rdPartyLicense"
    )

md5sums=(
    "2db4abd06db387b90c0eb40af194c4c5"
    "1cad66434bf3a305e6d5700c61359ca1"
    "62a8a4b1d661644cfe0cff524c5480cd"
    "65869b17505f99185b9ad8316282bdc7"
    )

build() {
    install -m755 -d "$srcdir"/tmp/elster/
    export WINEPREFIX="$srcdir"/tmp/elster/
    export WINEARCH="win32"
    # don't add shortcuts to desktop and don't install mono or gecko to the new wine bottle
    export WINEDLLOVERRIDES="winemenubuilder.exe=d;mscoree=d;mshtml=d"
    # don't show debug messages when running wine
    export WINEDEBUG="-all"
    wine msiexec /i "$srcdir"/ElsterFormularPrivat.msi /quiet
}

package() {
    install -d "$pkgdir"/opt/elster/
    cp -r "$srcdir"/tmp/elster/drive_c/Program\ Files/ElsterFormular/ "$pkgdir"/opt/elster
    find "$pkgdir"/opt/elster/ -type f -exec chmod 644 "{}" \;

    install -d "$pkgdir"/usr/bin/
    install -m755 elster "$pkgdir"/usr/bin/

    install -Dm644 "${srcdir}"/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm644 "${srcdir}"/3rdPartyLicense "$pkgdir/usr/share/licenses/$pkgname/3rdPartyLicense"
}