-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
64 lines (57 loc) · 2.26 KB
/
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
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
60
61
62
63
64
# Maintainer: Paulo Diovani <[email protected]>
# Debian Package Maintainer: GAS Tecnologia <[email protected]>
pkgname=warsaw
pkgver=1.3.0
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="https://guardiao.itau.com.br/warsaw"
license=('unknown')
depends=('openssl>=1.0' 'curl' 'nss')
provides=('warsaw')
source=(
"https://guardiao.itau.com.br/$pkgname/${pkgname}_setup_64.deb"
'warsaw.service'
)
md5sums=(
'041be5c226376656a5073594c71df5ad'
'e3ac123238cd0b370b6622c548120cd8'
)
package() {
msg2 "Extracting the data.tar.xz..."
bsdtar -xf data.tar.xz -C "$pkgdir/"
msg2 "Removing unnecessary files (e.g. systemv init)..."
rm -r "$pkgdir/etc/init.d"
msg2 "Adding systemd unit file..."
mkdir -p "$pkgdir/usr/lib/systemd/system"
cp warsaw.service "$pkgdir/usr/lib/systemd/system/"
msg2 "Fix file permissions..."
chmod 0755 "$pkgdir/etc/" \
"$pkgdir/etc/xdg/" \
"$pkgdir/etc/xdg/autostart/" \
"$pkgdir/usr/" \
"$pkgdir/usr/local/" \
"$pkgdir/usr/share/" \
"$pkgdir/usr/share/fonts/" \
"$pkgdir/usr/share/fonts/truetype/" \
"$pkgdir/usr/local/bin/" \
"$pkgdir/usr/local/etc/" \
"$pkgdir/usr/local/lib/" \
"$pkgdir/usr/local/bin/warsaw/" \
"$pkgdir/usr/local/etc/warsaw/" \
"$pkgdir/usr/local/lib/warsaw/"
chmod 0644 "$pkgdir/etc/xdg/autostart/warsaw.desktop" \
"$pkgdir/usr/local/etc/warsaw/openssl.conf" \
"$pkgdir/usr/local/etc/warsaw/features.dat" \
"$pkgdir/usr/local/etc/warsaw/config.cfg" \
"$pkgdir/usr/share/fonts/truetype/Warsaw Bold.ttf"
chmod 0755 "$pkgdir/usr/local/bin/warsaw/core" \
"$pkgdir/usr/local/bin/warsaw/uninstall_core" \
"$pkgdir/usr/local/lib/warsaw/wsbrmu.so" \
"$pkgdir/usr/local/lib/warsaw/wsftbco.so" \
"$pkgdir/usr/local/lib/warsaw/wsftdl.so" \
"$pkgdir/usr/local/lib/warsaw/wsftev.so" \
"$pkgdir/usr/local/lib/warsaw/wsftuan.so" \
"$pkgdir/usr/local/lib/warsaw/wsftup.so" \
"$pkgdir/usr/local/lib/warsaw/wslbmid.so"
}