blob: 027bbf0c95304062885abaa172e62e7814075d1e (
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
|
# Maintainer: Roland Kiraly <rolandgyulakiraly at outlook dot com>
# https://github.com/raverecursion/nordlayer-latest/tree/master
pkgname=nordlayer-bin
pkgver=3.2.2
pkgrel=4
pkgdesc="Proprietary VPN client for Linux"
arch=('x86_64')
url="https://nordlayer.com"
license=('custom:commercial')
replaces=('nordvpnteams-bin')
conflicts=('nordvpnteams-bin')
depends=('bash' 'libgcrypt' 'libgpg-error' 'libcap' 'hicolor-icon-theme' 'gmp')
options=('!strip' '!emptydirs')
install=${pkgname}.install
source_x86_64=("https://downloads.nordlayer.com/linux/latest/debian/pool/main/nordlayer_${pkgver}_amd64.deb")
sha512sums_x86_64=('f076ae853fb87941d1bc8c7cd34c31d233343a86b1d6b123353c328fda3fd938b7e38741ba1399f63eb2cdda990ddf460fde25e035eb810ea0c3d7de7e5303b2')
package() {
cd "${srcdir}"
# Extract the control and data tarballs from the .deb file
ar x "${srcdir}/nordlayer_${pkgver}_amd64.deb"
# Extract the data.tar.gz into the pkgdir
tar -xzf data.tar.gz -C "${pkgdir}"
# Move sbin binaries to bin
if [ -d "${pkgdir}/usr/sbin" ]; then
mv "${pkgdir}/usr/sbin"/* "${pkgdir}/usr/bin"
# Update the systemd service file to point to /usr/bin instead of /usr/sbin
sed -i 's+/usr/sbin+/usr/bin+g' "${pkgdir}/usr/lib/systemd/system/nordlayer.service"
# Remove the now-empty sbin directory
rm -r "${pkgdir}/usr/sbin"
fi
}
|