summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bc0b1a301f7d1967f7ddbd7cf13bcb1d9d59ba6 (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
# Maintainer: Daniel Wilhelm <concat(shield, wed) @ outlook.com>
pkgname=easytaxag
pkgver=2024.1.0
pkgrel=1
pkgdesc="EasyTax Applikation zur Steuererklärung 2024 für den Kanton Aargau"
arch=('any')
url="https://msg-easytax.ch/ag/"
license=('unknown')
depends=(
  'sh'
  'hicolor-icon-theme'
  'jre17-openjdk'
)
source=(
  https://msg-easytax.ch/ag/${pkgver%%.*}/EasyTax${pkgver%%.*}AG_unix_$(echo ${pkgver#*.} | sed 's/\./_/').tar.gz
  https://upload.wikimedia.org/wikipedia/commons/d/d9/Wappen_Aargau.svg

  easytaxag.desktop
  EasyTax_AG.patch
)

sha256sums=(
  '97026c06dd0b99c7cb24cccf7b88c909cebafcd763c01f7f3f8ada00b2e736a7'
  '253d315b20371cd9add777dc990f96545c60d5d07a3f34cd33720d5148e82486'
  '32d0ac4d2a6141b9651e6298a81910558672e04026d44171b00329f3cc32045b'
  'ae25c2210ddb59098400c5cc70896e8a696b209da3061931d633d04d05dee477'
)

package() {
  cd "${pkgdir}"
  install -d usr/share/java
  cp -rp "${srcdir}"/EasyTax${pkgver%%.*}AG usr/share/java
  patch usr/share/java/EasyTax${pkgver%%.*}AG/EasyTax${pkgver%%.*}_AG <"${srcdir}"/EasyTax_AG.patch

  install -d usr/bin
  ln -sf /usr/share/java/EasyTax${pkgver%%.*}AG/EasyTax${pkgver%%.*}_AG usr/bin/EasyTax${pkgver%%.*}_AG

  install -Dp "${srcdir}"/EasyTax${pkgver%%.*}AG/.install4j/i4j_extf_8_1hindd6_1txahfq.png usr/share/icons/hicolor/64x64/apps/easytaxag.png
  install -Dp "${srcdir}"/Wappen_Aargau.svg usr/share/icons/hicolor/scalable/apps/easytaxag.svg

  install -Dp "${srcdir}"/easytaxag.desktop usr/share/applications/easytaxag.desktop
}