blob: 5c1fd8c93706485a0fbfcbe5a4769aee6439e162 (
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
60
61
62
63
64
65
66
67
68
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Arda Aytekin <aytekin@protonmail.com>
pkgname=vpn-unlimited-bin
_name=${pkgname%-bin}
pkgver=9.0.0
pkgrel=1
pkgdesc="VPN Unlimited client application"
arch=(x86_64)
url="https://www.vpnunlimitedapp.com"
license=(custom)
provides=("$_name")
conflicts=("$_name")
depends=(
bash
boost174-libs
c-ares
curl
gcc-libs
glibc
hicolor-icon-theme
iptables
libcap-ng
libnl
lz4
lzo
openresolv
openssl
qt5-base
qt5-declarative
qt5-graphicaleffects
qt5-quickcontrols2
qt5-svg
qt5-webengine
zlib
)
source=(
"https://geo.keepsolidcdn.com/soft/vpn/Linux/vpn-unlimited_$pkgver-amd64_mint.deb"
"vpn-unlimited-daemon.service"
"vpn-unlimited.desktop"
)
sha256sums=(
'd64566e24c20ad2d139c4d7e54e70bc3376f14b2170855a6b17638e489e8944f'
'dd5ba49842bcbf4c5f722bac2ab3d4c919c676bc29c1ca269678e8a53c0e6a41'
'039dd8ab8b49dfe20ce055b0069d018bc16706f5d9005503501a85b918635f7e'
)
package() {
tar --extract --file data.tar.gz --directory "$pkgdir"
rm --recursive "${pkgdir:?}/etc"
find "$pkgdir/usr/sbin" -type f -exec mv '{}' "$pkgdir/usr/bin/" \;
rm -r "$pkgdir/usr/sbin"
install -Dm644 "$pkgdir/usr/share/doc/vpn-unlimited/copyright" "$pkgdir/usr/share/licenses/$pkgname/copyright"
rm --recursive "$pkgdir/usr/share/doc"
rm "$pkgdir/usr/share/applications/vpn-unlimited.desktop"
install -Dm644 "$srcdir/vpn-unlimited.desktop" "$pkgdir/usr/share/applications/vpn-unlimited.desktop"
find "$pkgdir/usr/lib" -type f -name "*.so*" -exec chmod +x {} +
chmod --recursive go-w "$pkgdir/usr"
install -Dm644 "vpn-unlimited-daemon.service" "$pkgdir/usr/lib/systemd/system/vpn-unlimited-daemon.service"
}
|