blob: e3286c33e54fc649ee7466adccf3593453abac01 (
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: Fabien Dubosson <fabien.dubosson@gmail.com>
# Contributors:
# Pierre-Yves Savioz <savioz.py@net-c.com>
# Stéphane Donnet <donnet.stephane@gmail.com>
pkgname="vstax"
_year="2023"
pkgver="${_year}_1.0.7"
pkgrel="90"
pkgdesc="Software to fill the tax forms of the canton of Valais, Switzerland"
url="http://www.vs.ch/vstax"
license=('unknown')
arch=('x86_64')
depends=('java-runtime' 'shared-mime-info' 'desktop-file-utils' 'libxrender' 'libxtst' 'fontconfig')
install="vstax.install"
changelog="ChangeLog"
source=("https://sftp.vs.ch/${pkgname}/${_year}/${pkgname}${pkgver}-${pkgrel}_amd64.deb"
"archlinux.patch")
sha256sums=('ed4a0452a7fb5fce948cfb92e3745e2a5fa972e7e229a4e2848770ac2560719f'
'a514c2d5495b3032ec0e16741624ec17073e1319a1dfb272193bd33ea9b40215')
prepare() {
cd "${srcdir}/"
# Extract the data contained in the `deb` file
tar -xf data.tar.zst
# Patch for archlinux
patch -p2 < archlinux.patch
}
package() {
cd "${srcdir}/usr/share/"
# Store application name in a variable
_appname="${pkgname}${_year}"
# Copy the application descriptor
install -D "applications/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
# Copy the application changelog
install -D "doc/${_appname}/changelog.Debian.gz" "${pkgdir}/usr/share/doc/${_appname}/changelog.Debian.gz"
# Copy the mime descriptor
install -D "mime/packages/${_appname}.xml" "${pkgdir}/usr/share/mime/packages/${_appname}.xml"
# Copy the application itself
install -d "${pkgdir}/usr/share/java/"
cp -R "${_appname}" "${pkgdir}/usr/share/java/${_appname}"
# Move executable to /usr/bin
install -d "${pkgdir}/usr/bin/"
mv "${pkgdir}/usr/share/java/${_appname}/${_appname}.sh" "${pkgdir}/usr/bin/${_appname}"
# Remove the included java environment
rm -Rf "${pkgdir}/usr/share/java/${_appname}/jre"
}
|