Nordvpn-bin AUR installer

Hello,
I want to install “nordvpn-bin” but the file won’t download due to restrictions in the country I’m connected to the internet. I have downloaded nordvpn_3.16.3_amd64.deb locally on the computer and need to change PKGBUILD, but unfortunately do not know which changes should be made.

# Maintainer: Cabel <mxzcabel at proton dot me>
# Contributor: metiis <aur at metiis dot com>
# Contributor: Julio Gutierrez <bubuntux at gmail dot com>
# Contributor: Martoko <mbastholm at gmail dot com>

pkgname=nordvpn-bin
pkgver=3.16.3
pkgrel=1
pkgdesc="NordVPN CLI tool for Linux"
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
url="https://nordvpn.com/download/linux/"
license=('GPL3')
depends=('libxml2')
provides=('nordvpn')
conflicts=('openvpn-nordvpn')
install=nordvpn-bin.install
source_x86_64=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_amd64.deb")
source_i686=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_i386.deb")
source_armv7h=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_armhf.deb")
source_aarch64=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_arm64.deb")
sha256sums_x86_64=('77d022e16911d77bcc0f3cfc9dc977070951a84f6882aaa82d50d941fd542481')
sha256sums_i686=('48be2b038d79df49aec7d89e8ff1af81bbf11b7d0c18383e2762a6c2eb83ff21')
sha256sums_armv7h=('5f7ac59d85d6b8d8d55aafd3a8782243247f457794713baf11e6e9366a7675db')
sha256sums_aarch64=('879ff28a962a44cf0a868dcb796f5ea8dd185ef81f23f9617a79ac8743abbb2f')

# There is also ArmEABI architecture for android devices available. Download with:
# https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_3.16.3_armel.deb

package() {
    bsdtar -O -xf *.deb data.tar.gz | bsdtar -C "${pkgdir}" -xJf -

    mv "${pkgdir}/usr/sbin/nordvpnd" "${pkgdir}/usr/bin"
    rm -r "${pkgdir}/etc/init.d"
    rm -r "${pkgdir}/usr/sbin"
    echo "g nordvpn - -" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
}

Please see

You don’t need to change the PKGBUILD - just place the downloaded file in the same folder as the cloned PKGBUILD

git clone https://aur.archlinux.org/nordvpn-bin
cd nordvpn-bin
makepkg -is

You may need to switch your system to use systemd-resolved - as described in above linked topic - otherwise you may get weird errors when your resolv.conf is not restored correctly.

I haven’t tested the issue, which caused me wtring the linked topic, since.

If you at a later point in time download a new file - you only have to change pkgver, save the file and run updpkgsums

I don’t know this, so I’m completely unsure, but I presume the filename should match between the PKGBUILD and the downloaded file?

If he downloaded the file like he said he did, the name will be what the PKGBUILD expects to find …

1 Like

That’s good. Just wanted to make sure and that it’s noted, if nothing else.

hey there im pretty noob, followed the Arch-wiki and got Nordvpn working.
(archlinuxorg.slash title.slash NordVPN) sry it says can’t include link so search it yourself.

Things to note:
section2
the gaswd username is the username of your installed linux (not the nordvpn account)
section3
to start the service i used “sudo systemctl restart nordvpnd”
section 4.1
use the “Token” Method, log into Nordvpn website,
find and create the token string (it’ll do a email/ phone confirmation)
copy it and use the command provided. tick the last forever option.

then just type nordvpn login.

===
lastly, run: (thanks to mr. linux-aarhus)
sudo systemctl enable --now nordvpnd.socket
if you get the .sock not found error after restart.

to set auto-connect on Nordvpn, do this:
nordvpn s autoconnect off (turn it off first)
nordvpn s autoconnect on us1234
(replace the us1234 to the server you like)

that’s all and it’s been stable everythings working for me. Hope this helps.