blob: 6db5bc42c34510602037c52e4e83d2652415a5dd (
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
|
#!/usr/bin/env bash
# Maintainer: Paulo Alexandre <paulequilibrio at gmail dot com>
# This package was inspired from https://aur.archlinux.org/packages/irpf by
# Contributor: Márcio Sousa Rocha <marciosr10 at gmail dot com>
# shellcheck disable=SC2154,SC2034
NAME=IRPF
YEAR=2020
pkgname="irpf-${YEAR}"
pkgver=2.2
pkgrel=1
license=('custom')
arch=(any)
pkgdesc="Programa Gerador de Declaração (PGD) da Declaração do Imposto sobre a Renda das Pessoas Físicas (DIRPF) $YEAR"
url='https://www.gov.br/receitafederal/pt-br'
source=(
"https://downloadirpf.receita.fazenda.gov.br/irpf/${YEAR}/irpf/arquivos/${NAME}${YEAR}-${pkgver}.zip"
'copyright'
"$pkgname"
"$pkgname.desktop"
"$pkgname.png"
)
md5sums=('20e577535cdf8213508eb2fdbd2530f8'
'4671623c2cff2dc938615e2af44d13aa'
'd1d1d5117fee890623bc9900f80d7a05'
'4b3d640b804e0cf15526b5a64f8da315'
'43d8c9617118578f03b2c4eeb1c72c57')
depends=('java-runtime' 'hicolor-icon-theme' 'sh')
package() {
mkdir -p "$pkgdir"/usr/share/{icons/hicolor/128x128/apps,applications,licenses/"$NAME"/"$pkgname","$NAME"/"$pkgname"}
mkdir "${pkgdir}/usr/bin"
local BASEDIR="${pkgdir}/usr/share/${NAME}/${pkgname}"
cd "${srcdir}/${NAME}${YEAR}" || exit
cp -rf help "$BASEDIR/"
cp -rf lib "$BASEDIR/"
cp -rf tutorial "$BASEDIR/"
install -Dm755 irpf.jar "$BASEDIR/${pkgname}.jar"
install -Dm644 Leia-me.htm "$BASEDIR/"
install -Dm644 offline.png "$BASEDIR/"
install -Dm644 online.png "$BASEDIR/"
install -Dm644 pgd-updater.jar "$BASEDIR/"
install -Dm644 "$srcdir/copyright" "$pkgdir/usr/share/licenses/${NAME}/${pkgname}/"
install -Dm755 "$srcdir/${pkgname}" "$pkgdir/usr/bin/"
install -Dm644 "$srcdir/${pkgname}.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/"
install -Dm644 "$srcdir/${pkgname}.desktop" "$pkgdir/usr/share/applications/"
}
|