blob: 089454902992fb389b37a7e5503c2429d40f2586 (
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
|
# Maintainer: Arda Aytekin <aytekin@protonmail.com>
pkgname=vpn-unlimited
pkgver=7.0
pkgrel=3
pkgdesc="VPN Unlimited client application"
arch=("x86_64")
url="https://www.vpnunlimitedapp.com"
license=('custom:"Copyright (c) 2018 KeepSolid Inc."')
source_x86_64=(
"vpn-unlimited-daemon.service"
"http://apt.keepsolid.com/deb/dists/stable/main/binary-amd64/vpn_unlimited_v7.0_amd64.deb"
)
sha256sums_x86_64=(
"dd5ba49842bcbf4c5f722bac2ab3d4c919c676bc29c1ca269678e8a53c0e6a41"
"9d7f72353256a2e26843dcaa317440e0b14c61be8f0c48466a7ce65223aec908"
)
depends=(
"glibc>=2.9" "qt5-base>=5.2.1" "qt5-script>=5.2.1" "qt5-webkit>=5.2.1"
"gcc-libs>=4.4.15" "zlib>=1.2.0" "openvpn" "openresolv" "lzo>=2.0"
"iproute2" "net-tools" "c-ares>=1.10.0" "lsb-release" "strongswan>=5.8.1"
"qt5-webengine>=5.2.1"
)
package() {
cd "${srcdir}"
# Extract the package
tar --extract --file data.tar.xz --directory "${pkgdir}"
# Remove the init.d related things
rm --recursive --force "${pkgdir}/etc"
# Add the systemd equivalent
install -Dm644 "${srcdir}/vpn-unlimited-daemon.service" \
"${pkgdir}/usr/lib/systemd/system/vpn-unlimited-daemon.service"
# Move sbin to bin
find "${pkgdir}/usr/sbin" -type f -exec mv '{}' "${pkgdir}/usr/bin/" \;
rmdir "${pkgdir}/usr/sbin"
# Copy the license file
install -Dm644 "${pkgdir}/usr/share/doc/vpn-unlimited/copyright" \
"${pkgdir}/usr/share/licenses/vpn-unlimited/copyright"
rm --recursive --force "${pkgdir}/usr/share/doc"
chmod --recursive go-w "${pkgdir}/usr"
}
|