blob: 64bc0fd44054a0ff8b05c7af439306255f494a83 (
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
pkgver=3.3.1
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' 'strongswan')
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=('56054790a31894177b48837e9fb4dc95178b7f243f87a3a4bbab92729fc16387316df7cb1c21c58d852d2497eb75e9d124e09da0f116cf2b06841231b3823b14')
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
}
|