Add pre_remove hook to fix attributes for data files. This is dirty, but it is how nordvpn does upstream too. Adjust PKGBUILD as there is now only 1 systemd service again. Do not ship with the SysV files as arch is a systemd distro.
32 lines
1.4 KiB
Bash
32 lines
1.4 KiB
Bash
# Maintainer: metiis <aur at metiis dot com>
|
|
# Maintainer: Julio Gutierrez <bubuntux at gmail dot com>
|
|
# Maintainer: Martoko <mbastholm at gmail dot com>
|
|
|
|
pkgname=nordvpn-bin
|
|
pkgver=3.1.0_4
|
|
pkgrel=1
|
|
pkgdesc="NordVPN CLI tool for Linux"
|
|
arch=('i686' 'x86_64' 'armv7h' 'aarch64' )
|
|
url="https://nordvpn.com/download/linux/"
|
|
license=('custom')
|
|
depends=('net-tools' 'libxslt' 'iptables' 'procps' 'iproute2')
|
|
provides=('nordvpn')
|
|
conflicts=('openvpn-nordvpn')
|
|
install=nordvpn-bin.install
|
|
source_i686=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_i386.deb")
|
|
source_x86_64=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_amd64.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//_/-}_aarch64.deb")
|
|
sha256sums_i686=('9afcdb23e58dbfffba23567e566f21951cce7508b5d278057f15095971638b86')
|
|
sha256sums_x86_64=('5d05b23afb6687ccf423f3cf8ad9f8fe297dcee7cfe3ae13d5973ce1c120305f')
|
|
sha256sums_armv7h=('225f4371d2895e67c91b7c95b08702718b182da70ee4d445390625f7fe2c26bc')
|
|
sha256sums_aarch64=('843b290ce30a81768521f5cbc50b4b2f9f11cf6f1dc43873c72a4b7e0a0282ee')
|
|
|
|
package() {
|
|
bsdtar -O -xf *.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf -
|
|
|
|
mv "${pkgdir}/usr/sbin/nordvpnd" "${pkgdir}/usr/bin"
|
|
rm -r "${pkgdir}/etc/init.d"
|
|
rm -r "${pkgdir}/usr/sbin"
|
|
}
|