Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: nordvpn-bin-3.7.1
@ 2020-04-17 22:08 kernle32dll
  2020-04-17 22:12 ` [PR PATCH] [Updated] " kernle32dll
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: kernle32dll @ 2020-04-17 22:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

There is a new pull request by kernle32dll against master on the void-packages repository

https://github.com/kernle32dll/void-packages add-nordvpn
https://github.com/void-linux/void-packages/pull/21099

New package: nordvpn-bin-3.7.1
My first go at a new package.

See https://github.com/void-linux/void-packages/issues/11356

A patch file from https://github.com/void-linux/void-packages/pull/21099.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-add-nordvpn-21099.patch --]
[-- Type: text/x-diff, Size: 2957 bytes --]

From 5071fa6c2a947e7f5d97d7cd93e46cfc4608203f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gerdau?= <bjoerngerdau@gmx.de>
Date: Sat, 18 Apr 2020 00:07:35 +0200
Subject: [PATCH] New package: nordvpn-bin-3.7.1

---
 srcpkgs/nordvpn-bin/files/nordvpnd/run |  2 +
 srcpkgs/nordvpn-bin/template           | 60 ++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 srcpkgs/nordvpn-bin/files/nordvpnd/run
 create mode 100644 srcpkgs/nordvpn-bin/template

diff --git a/srcpkgs/nordvpn-bin/files/nordvpnd/run b/srcpkgs/nordvpn-bin/files/nordvpnd/run
new file mode 100644
index 00000000000..ab17e30c5d3
--- /dev/null
+++ b/srcpkgs/nordvpn-bin/files/nordvpnd/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec nordvpnd 2>&1
diff --git a/srcpkgs/nordvpn-bin/template b/srcpkgs/nordvpn-bin/template
new file mode 100644
index 00000000000..0baad81a6ea
--- /dev/null
+++ b/srcpkgs/nordvpn-bin/template
@@ -0,0 +1,60 @@
+# Template file for 'nordvpn-bin'
+pkgname=nordvpn-bin
+version=3.7.1
+revision=1
+archs="i686 x86_64 aarch64 armv7l armv6l"
+build_style=fetch
+short_desc="NordVPN CLI tool for Linux"
+maintainer="Björn Gerdau <bjoerngerdau@gmx.de>"
+license="custom"
+homepage="https://nordvpn.com"
+hostmakedepends="tar xz"
+nopie=true
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64)
+		_deb="nordvpn_${version}_amd64.deb"
+		distfiles="https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${version}_amd64.deb"
+		checksum=2385b1361be082ae18a9d018787cd5e54943e26b9285fca115093aa16897f766
+		;;
+	i686)
+		_deb="nordvpn_${version}_i386.deb"
+		distfiles="https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${version}_i386.deb"
+		checksum=baf90c370c42bb89fe3dee4c40d0f95adc2e3d393bccea541e9cf9d9a2dd0197
+		;;
+	aarch64)
+		_deb="nordvpn_${version}_arm64.deb"
+		distfiles="https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${version}_arm64.deb"
+		checksum=f366e0fe973a1d41354d9908547b0a1b3f96298bb068b4ab3797439b35ae8d72
+		;;
+	armv7l)
+		_deb="nordvpn_${version}_armhf.deb"
+		distfiles="https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${version}_armhf.deb"
+		checksum=9f7cd08edbb1d50660838b1f035aa01b5943447ad2bebe0a45e604ab8df2912a
+		;;
+	armv6l)
+		_deb="nordvpn_${version}_armel.deb"
+		distfiles="https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${version}_armel.deb"
+		checksum=ca5fa929000b46a3ece0a36d72bb832bcf42e0886db6b09e47f3b6bfb98ab7d7
+		;;
+esac
+
+do_install() {
+	ar p "${_deb}" data.tar.xz > data.tar.xz
+	tar -xJf data.tar.xz
+	
+	# daemon and cli tool
+	vbin usr/sbin/nordvpnd
+	vbin usr/bin/nordvpn
+	
+	pwd ${DESTDIR}
+	
+	# docs
+	vdoc usr/share/doc/nordvpn/changelog.gz
+	vman usr/share/man/man1/nordvpn.1.gz
+	vinstall usr/share/bash-completion/completions/nordvpn 644 usr/share/bash-completion/completions
+	vinstall "usr/share/zsh/functions/Completion/Unix/_nordvpn_auto_complete" 644 usr/share/zsh/site-functions
+	
+	# runit service
+	vsv nordvpnd
+}

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-12-30  7:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 22:08 [PR PATCH] New package: nordvpn-bin-3.7.1 kernle32dll
2020-04-17 22:12 ` [PR PATCH] [Updated] " kernle32dll
2020-04-17 22:22 ` kernle32dll
2020-04-17 22:23 ` kernle32dll
2020-04-18  9:27 ` kernle32dll
2020-04-18  9:34 ` kernle32dll
2020-04-18  9:40 ` WIP: " kernle32dll
2020-04-18 11:02 ` kernle32dll
2020-09-27 18:10 ` [PR PATCH] [Updated] WIP: New package: nordvpn-bin-3.7.2 kernle32dll
2020-11-03  8:38 ` kernle32dll
2020-12-30  7:23 ` the-maldridge
2020-12-30  7:23 ` [PR PATCH] [Closed]: " the-maldridge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).