PKGBUILD

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
# Maintainer: ks27 <ks27 at op dot pl>

pkgname=e-deklaracje
pkgrel=1
pkgver=4.0.4
pkgdesc="Polish tax return client"
arch=('i686' 'x86_64')
url="http://e-deklaracje.gov.pl"
license=(unknown)
[[ ${CARCH} = 'i686' ]] && depends=('adobe-air' 'acroread') 
[[ ${CARCH} = 'x86_64' ]] && depends=('bin32-adobe-air' 'acroread')

makedepends=('unzip')
source=('e-deklaracje.air::http://e-deklaracje.gov.pl/download.php?id=2' 'e-deklaracje.desktop')
noextract=(e-deklaracje.air)
md5sums=('e6e59a31a8d4d7628ea59b55d3f0931d'
         'c808bf71df24610983a3317a68488189')

package() {
	unzip -q -u e-deklaracje.air

	install -D -m 644 "$srcdir/e-deklaracje.air" "$pkgdir/opt/$pkgname/$pkgname.air"
	install -D -m 644 "$srcdir/assets/icons/icon128.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
	install -D -m 644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
	install -D -m 755 "/usr/bin/adobe-air" "$pkgdir/opt/$pkgname/adobe-air_$pkgname"
	sed -i 's/-nodebug //' "$pkgdir/opt/$pkgname/adobe-air_$pkgname"
}