Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: enpass-6.3.3.601_amd64
@ 2020-01-26 19:01 voidlinux-github
  2020-01-26 19:11 ` voidlinux-github
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: voidlinux-github @ 2020-01-26 19:01 UTC (permalink / raw)
  To: ml

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

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

https://github.com/TheGejr/void-packages master
https://github.com/void-linux/void-packages/pull/18573

New package: enpass-6.3.3.601_amd64


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

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

From 5b1e682c4ea4cb65c7ea1343fb90ac6cb64334cd Mon Sep 17 00:00:00 2001
From: Malte Gejr <maltegejr.korup@gmail.com>
Date: Sun, 26 Jan 2020 19:57:28 +0100
Subject: [PATCH] New package: enpass-6.3.3.601_amd64

---
 srcpkgs/enpass/INSTALL  | 37 +++++++++++++++++++++++++++++++++++++
 srcpkgs/enpass/REMOVE   | 17 +++++++++++++++++
 srcpkgs/enpass/template | 20 ++++++++++++++++++++
 srcpkgs/enpass/update   |  3 +++
 4 files changed, 77 insertions(+)
 create mode 100644 srcpkgs/enpass/INSTALL
 create mode 100644 srcpkgs/enpass/REMOVE
 create mode 100644 srcpkgs/enpass/template
 create mode 100644 srcpkgs/enpass/update

diff --git a/srcpkgs/enpass/INSTALL b/srcpkgs/enpass/INSTALL
new file mode 100644
index 00000000000..a59812f33fb
--- /dev/null
+++ b/srcpkgs/enpass/INSTALL
@@ -0,0 +1,37 @@
+# INSTALL for 'enpass'
+# Fetching proprietary binaries at install-time
+
+_BUILDDIR="/tmp/enpass.build"
+
+if test "$ACTION" = "post"; then
+	. opt/enpass/pkgdata
+	mkdir -p "$_BUILDDIR"
+	(
+		set -e
+		cd "$_BUILDDIR"
+		xbps-uhelper fetch "https://apt.enpass.io/pool/main/e/enpass/enpass_${SVERSION}.deb"
+		echo "${SCHECKSUM}  enpass_${SVERSION}.deb" >checksum
+		sha256sum -c checksum
+		ar x "enpass_${SVERSION}.deb"
+		tar -xf data.tar.gz
+	)
+	if [ $? -ne 0 ] ; then
+		echo "Failed downloading enpass"
+		rm -r "$_BUILDDIR";
+		exit 1;
+	fi
+	
+	mkdir -p opt/enpass
+	cp -r "${_BUILDDIR}/opt/enpass" opt/
+	mkdir -p usr/share/applications
+	cp -r "${_BUILDDIR}/usr/share/applications" /usr/share/
+	mkdir -p usr/share/doc
+	cp -r "${_BUILDDIR}/usr/share/doc" /usr/share/
+	mkdir -p usr/share/icons
+	cp -r "${_BUILDDIR}/usr/share/icons" /usr/share/
+	mkdir -p usr/share/mime
+	cp -r "${_BUILDDIR}/usr/share/mime" /usr/share/
+	rm -r "$_BUILDDIR"
+	update-desktop-database
+	update-mime-database /usr/share/mime
+fi
diff --git a/srcpkgs/enpass/REMOVE b/srcpkgs/enpass/REMOVE
new file mode 100644
index 00000000000..6a3198b4a4e
--- /dev/null
+++ b/srcpkgs/enpass/REMOVE
@@ -0,0 +1,17 @@
+# REMOVE for 'enpass'
+# Deleting dynamically fetched files
+
+if test "$ACTION" = "post"; then
+	rm /usr/share/applications/enpass.desktop
+	for _s in 16 24 32 48 64 96 128 256; do
+		rm "/usr/share/icons/hicolor/${_s}x${_s}/apps/enpass.png"
+	done
+	for _s in 16 22 24 32 44 48; do
+		rm "/usr/share/icons/hicolor/${_s}x${_s}/status/enpass-status.png"
+		rm "/usr/share/icons/hicolor/${_s}x${_s}/status/enpass-status-dark.png"
+	done
+	rm -r /usr/share/doc/enpass
+	rm /usr/share/mime/packages/application-enpass.xml
+	rm -r /opt/enpass
+fi
+
diff --git a/srcpkgs/enpass/template b/srcpkgs/enpass/template
new file mode 100644
index 00000000000..ebabc6a1009
--- /dev/null
+++ b/srcpkgs/enpass/template
@@ -0,0 +1,20 @@
+# Template file for 'enpass'
+pkgname=enpass
+version=6.3.3.601
+revision=1
+archs="x86_64"
+create_wrksrc=yes
+build_style=fetch
+short_desc="Proprietary multiplatform password manager"
+maintainer="Malte Gejr <maltegejr.korup@gmail.com>"
+license="Proprietary"
+homepage="https://www.enpass.io/"
+repository=nonfree
+triggers="mimedb update-desktopdb"
+_sversion="_amd64"
+_schecksum="d1dae4043cfb5e79cb3f9c1699e87ce54c39df407ba6334eb856a59d79fb8e29"
+do_install() {
+	vmkdir opt/enpass
+	echo "export SVERSION=\"${version}${_sversion}\"" >"${DESTDIR}/opt/enpass/pkgdata"
+	echo "export SCHECKSUM=\"${_schecksum}\"" >>"${DESTDIR}/opt/enpass/pkgdata"
+}
diff --git a/srcpkgs/enpass/update b/srcpkgs/enpass/update
new file mode 100644
index 00000000000..4c5d1ee97fe
--- /dev/null
+++ b/srcpkgs/enpass/update
@@ -0,0 +1,3 @@
+site="https://apt.enpass.io/pool/main/e/enpass/"
+version="${version}${_sversion}"
+pattern='enpass_\K[\d.]+(?=\.deb)'

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

end of thread, other threads:[~2020-01-27 18:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-26 19:01 [PR PATCH] New package: enpass-6.3.3.601_amd64 voidlinux-github
2020-01-26 19:11 ` voidlinux-github
2020-01-27 13:19 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-27 13:29 ` voidlinux-github
2020-01-27 13:43 ` voidlinux-github
2020-01-27 15:54 ` voidlinux-github
2020-01-27 15:57 ` voidlinux-github
2020-01-27 18:05 ` [PR PATCH] [Closed]: " voidlinux-github

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).