Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New Package: hplip-plugin-3.22.6
@ 2022-09-07  9:08 dataCobra
  2022-09-07  9:08 ` [PR PATCH] [Updated] " dataCobra
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: dataCobra @ 2022-09-07  9:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/dataCobra/void-packages hplip-plugin
https://github.com/void-linux/void-packages/pull/39147

New Package: hplip-plugin-3.22.6
I've got asked by @biopsin to fix his PR #37287.

I've changed some things in the template to standardize it.

---

**The package is restricted.**

#### Testing the changes
- I tested the changes in this PR: **YES - tested by @biopsin**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686 (crossbuild)
  - aarch64 (crossbuild)
  - armv7l (crossbuild)
  - armv6l (crossbuild)


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

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

From fcb6fcdb35a206f9a0623db8cf6be4731f75ea5c Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Wed, 7 Sep 2022 10:36:22 +0200
Subject: [PATCH] New Package: hplip-plugin-3.22.6.

---
 srcpkgs/hplip-plugin/template | 61 +++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/hplip-plugin/template

diff --git a/srcpkgs/hplip-plugin/template b/srcpkgs/hplip-plugin/template
new file mode 100644
index 000000000000..936386bd98a0
--- /dev/null
+++ b/srcpkgs/hplip-plugin/template
@@ -0,0 +1,61 @@
+# Template file for 'hplip-plugin'
+# Must be in sync with main hplip package
+pkgname=hplip-plugin
+version=3.22.6
+revision=1
+archs="i686 x86_64 armv[67]l aarch64"
+hostmakedepends="tar"
+short_desc="Binary plugin for HPs hplip printer driver library"
+maintainer="biopsin <biopsin@teknik.io>"
+license="custom:proprietary"
+homepage="https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html"
+changelog="https://developers.hp.com/hp-linux-imaging-and-printing/release_notes"
+distfiles="https://developers.hp.com/sites/default/files/hplip-${version}-plugin.run"
+checksum=3124023e749754bad74b59cf208be5531d31b216f25343a5a5f2ce82164c82fb
+repository=nonfree
+restricted=yes
+
+ignore_elf_dirs="/usr/share/hplip"
+
+do_extract() {
+	/bin/sh ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hplip-${version}-plugin.run \
+		--noexec --target ${wrksrc}
+}
+
+do_install() {
+	vmkdir usr/share/hplip/data/firmware
+	vmkdir usr/share/hplip/fax/plugins
+	vmkdir usr/share/hplip/prnt/plugins
+	vmkdir usr/share/hplip/scan/plugins
+	vmkdir usr/share/licenses/hplip-plugin
+	vmkdir var/lib/hp
+
+	case "$XBPS_TARGET_MACHINE" in
+		i686) _arch='x86_32' ;;
+		x86_64) _arch='x86_64' ;;
+		armv[67]l) _arch='arm32' ;;
+		aarch64) _arch='arm64' ;;
+	esac
+
+	vcopy plugin.spec usr/share/hplip/
+	vcopy hp_laserjet_*.fw.gz usr/share/hplip/data/firmware/
+	vcopy fax_marvell-"$_arch".so usr/share/hplip/fax/plugins/
+	vcopy hbpl1-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy lj-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy bb_*-"$_arch".so usr/share/hplip/scan/plugins/
+	vlicense license.txt
+
+	cat << EOF > hplip.state
+[plugin]
+installed = 1
+eula = 1
+version = ${version}
+EOF
+	vcopy hplip.state var/lib/hp
+
+	find "${DESTDIR}/usr/share/hplip" -type f -name "*.so" | while read f; do
+		lib_dir="${f%/*}"
+		lib_name="${f##*/}"
+		ln -sf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
+	done
+}

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

* Re: [PR PATCH] [Updated] New Package: hplip-plugin-3.22.6
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
@ 2022-09-07  9:08 ` dataCobra
  2022-09-14  4:52 ` dataCobra
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-09-07  9:08 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages hplip-plugin
https://github.com/void-linux/void-packages/pull/39147

New Package: hplip-plugin-3.22.6
I've got asked by @biopsin to fix his PR #37287.

I've changed some things in the template to standardize it.

---

**The package is restricted.**

#### Testing the changes
- I tested the changes in this PR: **YES - tested by @biopsin**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686 (crossbuild)
  - aarch64 (crossbuild)
  - armv7l (crossbuild)
  - armv6l (crossbuild)


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

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

From f13e4d315a0fd24ab32d219af4ff983bcb77c4ed Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Wed, 7 Sep 2022 10:36:22 +0200
Subject: [PATCH] New Package: hplip-plugin-3.22.6

---
 srcpkgs/hplip-plugin/template | 61 +++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/hplip-plugin/template

diff --git a/srcpkgs/hplip-plugin/template b/srcpkgs/hplip-plugin/template
new file mode 100644
index 000000000000..936386bd98a0
--- /dev/null
+++ b/srcpkgs/hplip-plugin/template
@@ -0,0 +1,61 @@
+# Template file for 'hplip-plugin'
+# Must be in sync with main hplip package
+pkgname=hplip-plugin
+version=3.22.6
+revision=1
+archs="i686 x86_64 armv[67]l aarch64"
+hostmakedepends="tar"
+short_desc="Binary plugin for HPs hplip printer driver library"
+maintainer="biopsin <biopsin@teknik.io>"
+license="custom:proprietary"
+homepage="https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html"
+changelog="https://developers.hp.com/hp-linux-imaging-and-printing/release_notes"
+distfiles="https://developers.hp.com/sites/default/files/hplip-${version}-plugin.run"
+checksum=3124023e749754bad74b59cf208be5531d31b216f25343a5a5f2ce82164c82fb
+repository=nonfree
+restricted=yes
+
+ignore_elf_dirs="/usr/share/hplip"
+
+do_extract() {
+	/bin/sh ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hplip-${version}-plugin.run \
+		--noexec --target ${wrksrc}
+}
+
+do_install() {
+	vmkdir usr/share/hplip/data/firmware
+	vmkdir usr/share/hplip/fax/plugins
+	vmkdir usr/share/hplip/prnt/plugins
+	vmkdir usr/share/hplip/scan/plugins
+	vmkdir usr/share/licenses/hplip-plugin
+	vmkdir var/lib/hp
+
+	case "$XBPS_TARGET_MACHINE" in
+		i686) _arch='x86_32' ;;
+		x86_64) _arch='x86_64' ;;
+		armv[67]l) _arch='arm32' ;;
+		aarch64) _arch='arm64' ;;
+	esac
+
+	vcopy plugin.spec usr/share/hplip/
+	vcopy hp_laserjet_*.fw.gz usr/share/hplip/data/firmware/
+	vcopy fax_marvell-"$_arch".so usr/share/hplip/fax/plugins/
+	vcopy hbpl1-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy lj-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy bb_*-"$_arch".so usr/share/hplip/scan/plugins/
+	vlicense license.txt
+
+	cat << EOF > hplip.state
+[plugin]
+installed = 1
+eula = 1
+version = ${version}
+EOF
+	vcopy hplip.state var/lib/hp
+
+	find "${DESTDIR}/usr/share/hplip" -type f -name "*.so" | while read f; do
+		lib_dir="${f%/*}"
+		lib_name="${f##*/}"
+		ln -sf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
+	done
+}

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

* Re: [PR PATCH] [Updated] New Package: hplip-plugin-3.22.6
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
  2022-09-07  9:08 ` [PR PATCH] [Updated] " dataCobra
@ 2022-09-14  4:52 ` dataCobra
  2022-10-15  8:01 ` dataCobra
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-09-14  4:52 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages hplip-plugin
https://github.com/void-linux/void-packages/pull/39147

New Package: hplip-plugin-3.22.6
I've got asked by @biopsin to fix his PR #37287.

The corresponding `hplip` PR is #39146.

I've changed some things in the template to standardize it.

---

**The package is restricted.**

#### Testing the changes
- I tested the changes in this PR: **YES - tested by @biopsin**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686 (crossbuild)
  - aarch64 (crossbuild)
  - armv7l (crossbuild)
  - armv6l (crossbuild)


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

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

From d31fe51b1021f7813e20bc64b75c3d72caf3a1a0 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Wed, 7 Sep 2022 10:36:22 +0200
Subject: [PATCH] New Package: hplip-plugin-3.22.6

---
 srcpkgs/hplip-plugin/template | 61 +++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/hplip-plugin/template

diff --git a/srcpkgs/hplip-plugin/template b/srcpkgs/hplip-plugin/template
new file mode 100644
index 000000000000..936386bd98a0
--- /dev/null
+++ b/srcpkgs/hplip-plugin/template
@@ -0,0 +1,61 @@
+# Template file for 'hplip-plugin'
+# Must be in sync with main hplip package
+pkgname=hplip-plugin
+version=3.22.6
+revision=1
+archs="i686 x86_64 armv[67]l aarch64"
+hostmakedepends="tar"
+short_desc="Binary plugin for HPs hplip printer driver library"
+maintainer="biopsin <biopsin@teknik.io>"
+license="custom:proprietary"
+homepage="https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html"
+changelog="https://developers.hp.com/hp-linux-imaging-and-printing/release_notes"
+distfiles="https://developers.hp.com/sites/default/files/hplip-${version}-plugin.run"
+checksum=3124023e749754bad74b59cf208be5531d31b216f25343a5a5f2ce82164c82fb
+repository=nonfree
+restricted=yes
+
+ignore_elf_dirs="/usr/share/hplip"
+
+do_extract() {
+	/bin/sh ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hplip-${version}-plugin.run \
+		--noexec --target ${wrksrc}
+}
+
+do_install() {
+	vmkdir usr/share/hplip/data/firmware
+	vmkdir usr/share/hplip/fax/plugins
+	vmkdir usr/share/hplip/prnt/plugins
+	vmkdir usr/share/hplip/scan/plugins
+	vmkdir usr/share/licenses/hplip-plugin
+	vmkdir var/lib/hp
+
+	case "$XBPS_TARGET_MACHINE" in
+		i686) _arch='x86_32' ;;
+		x86_64) _arch='x86_64' ;;
+		armv[67]l) _arch='arm32' ;;
+		aarch64) _arch='arm64' ;;
+	esac
+
+	vcopy plugin.spec usr/share/hplip/
+	vcopy hp_laserjet_*.fw.gz usr/share/hplip/data/firmware/
+	vcopy fax_marvell-"$_arch".so usr/share/hplip/fax/plugins/
+	vcopy hbpl1-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy lj-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy bb_*-"$_arch".so usr/share/hplip/scan/plugins/
+	vlicense license.txt
+
+	cat << EOF > hplip.state
+[plugin]
+installed = 1
+eula = 1
+version = ${version}
+EOF
+	vcopy hplip.state var/lib/hp
+
+	find "${DESTDIR}/usr/share/hplip" -type f -name "*.so" | while read f; do
+		lib_dir="${f%/*}"
+		lib_name="${f##*/}"
+		ln -sf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
+	done
+}

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

* Re: [PR PATCH] [Updated] New Package: hplip-plugin-3.22.6
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
  2022-09-07  9:08 ` [PR PATCH] [Updated] " dataCobra
  2022-09-14  4:52 ` dataCobra
@ 2022-10-15  8:01 ` dataCobra
  2022-11-04  6:27 ` dataCobra
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-10-15  8:01 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages hplip-plugin
https://github.com/void-linux/void-packages/pull/39147

New Package: hplip-plugin-3.22.6
I've got asked by @biopsin to fix his PR #37287.

The corresponding `hplip` PR is #39146.

I've changed some things in the template to standardize it.

---

**The package is restricted.**

#### Testing the changes
- I tested the changes in this PR: **YES - tested by @biopsin**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686 (crossbuild)
  - aarch64 (crossbuild)
  - armv7l (crossbuild)
  - armv6l (crossbuild)


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

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

From acbb4ea50db96dc76be8d73b030e983b197ced84 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Wed, 7 Sep 2022 10:36:22 +0200
Subject: [PATCH] New Package: hplip-plugin-3.22.6

---
 srcpkgs/hplip-plugin/template | 61 +++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/hplip-plugin/template

diff --git a/srcpkgs/hplip-plugin/template b/srcpkgs/hplip-plugin/template
new file mode 100644
index 000000000000..936386bd98a0
--- /dev/null
+++ b/srcpkgs/hplip-plugin/template
@@ -0,0 +1,61 @@
+# Template file for 'hplip-plugin'
+# Must be in sync with main hplip package
+pkgname=hplip-plugin
+version=3.22.6
+revision=1
+archs="i686 x86_64 armv[67]l aarch64"
+hostmakedepends="tar"
+short_desc="Binary plugin for HPs hplip printer driver library"
+maintainer="biopsin <biopsin@teknik.io>"
+license="custom:proprietary"
+homepage="https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html"
+changelog="https://developers.hp.com/hp-linux-imaging-and-printing/release_notes"
+distfiles="https://developers.hp.com/sites/default/files/hplip-${version}-plugin.run"
+checksum=3124023e749754bad74b59cf208be5531d31b216f25343a5a5f2ce82164c82fb
+repository=nonfree
+restricted=yes
+
+ignore_elf_dirs="/usr/share/hplip"
+
+do_extract() {
+	/bin/sh ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hplip-${version}-plugin.run \
+		--noexec --target ${wrksrc}
+}
+
+do_install() {
+	vmkdir usr/share/hplip/data/firmware
+	vmkdir usr/share/hplip/fax/plugins
+	vmkdir usr/share/hplip/prnt/plugins
+	vmkdir usr/share/hplip/scan/plugins
+	vmkdir usr/share/licenses/hplip-plugin
+	vmkdir var/lib/hp
+
+	case "$XBPS_TARGET_MACHINE" in
+		i686) _arch='x86_32' ;;
+		x86_64) _arch='x86_64' ;;
+		armv[67]l) _arch='arm32' ;;
+		aarch64) _arch='arm64' ;;
+	esac
+
+	vcopy plugin.spec usr/share/hplip/
+	vcopy hp_laserjet_*.fw.gz usr/share/hplip/data/firmware/
+	vcopy fax_marvell-"$_arch".so usr/share/hplip/fax/plugins/
+	vcopy hbpl1-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy lj-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy bb_*-"$_arch".so usr/share/hplip/scan/plugins/
+	vlicense license.txt
+
+	cat << EOF > hplip.state
+[plugin]
+installed = 1
+eula = 1
+version = ${version}
+EOF
+	vcopy hplip.state var/lib/hp
+
+	find "${DESTDIR}/usr/share/hplip" -type f -name "*.so" | while read f; do
+		lib_dir="${f%/*}"
+		lib_name="${f##*/}"
+		ln -sf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
+	done
+}

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

* Re: [PR PATCH] [Updated] New Package: hplip-plugin-3.22.6
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (2 preceding siblings ...)
  2022-10-15  8:01 ` dataCobra
@ 2022-11-04  6:27 ` dataCobra
  2022-11-10  5:54 ` dataCobra
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-11-04  6:27 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages hplip-plugin
https://github.com/void-linux/void-packages/pull/39147

New Package: hplip-plugin-3.22.6
I've got asked by @biopsin to fix his PR #37287.

The corresponding `hplip` PR is #39146.

I've changed some things in the template to standardize it.

---

**The package is restricted.**

#### Testing the changes
- I tested the changes in this PR: **YES - tested by @biopsin**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686 (crossbuild)
  - aarch64 (crossbuild)
  - armv7l (crossbuild)
  - armv6l (crossbuild)


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

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

From 18fba45b3e2486fab4b0d2a7ab9eadc93cc38b65 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Wed, 7 Sep 2022 10:36:22 +0200
Subject: [PATCH] New Package: hplip-plugin-3.22.6

---
 srcpkgs/hplip-plugin/template | 61 +++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/hplip-plugin/template

diff --git a/srcpkgs/hplip-plugin/template b/srcpkgs/hplip-plugin/template
new file mode 100644
index 000000000000..936386bd98a0
--- /dev/null
+++ b/srcpkgs/hplip-plugin/template
@@ -0,0 +1,61 @@
+# Template file for 'hplip-plugin'
+# Must be in sync with main hplip package
+pkgname=hplip-plugin
+version=3.22.6
+revision=1
+archs="i686 x86_64 armv[67]l aarch64"
+hostmakedepends="tar"
+short_desc="Binary plugin for HPs hplip printer driver library"
+maintainer="biopsin <biopsin@teknik.io>"
+license="custom:proprietary"
+homepage="https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html"
+changelog="https://developers.hp.com/hp-linux-imaging-and-printing/release_notes"
+distfiles="https://developers.hp.com/sites/default/files/hplip-${version}-plugin.run"
+checksum=3124023e749754bad74b59cf208be5531d31b216f25343a5a5f2ce82164c82fb
+repository=nonfree
+restricted=yes
+
+ignore_elf_dirs="/usr/share/hplip"
+
+do_extract() {
+	/bin/sh ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hplip-${version}-plugin.run \
+		--noexec --target ${wrksrc}
+}
+
+do_install() {
+	vmkdir usr/share/hplip/data/firmware
+	vmkdir usr/share/hplip/fax/plugins
+	vmkdir usr/share/hplip/prnt/plugins
+	vmkdir usr/share/hplip/scan/plugins
+	vmkdir usr/share/licenses/hplip-plugin
+	vmkdir var/lib/hp
+
+	case "$XBPS_TARGET_MACHINE" in
+		i686) _arch='x86_32' ;;
+		x86_64) _arch='x86_64' ;;
+		armv[67]l) _arch='arm32' ;;
+		aarch64) _arch='arm64' ;;
+	esac
+
+	vcopy plugin.spec usr/share/hplip/
+	vcopy hp_laserjet_*.fw.gz usr/share/hplip/data/firmware/
+	vcopy fax_marvell-"$_arch".so usr/share/hplip/fax/plugins/
+	vcopy hbpl1-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy lj-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy bb_*-"$_arch".so usr/share/hplip/scan/plugins/
+	vlicense license.txt
+
+	cat << EOF > hplip.state
+[plugin]
+installed = 1
+eula = 1
+version = ${version}
+EOF
+	vcopy hplip.state var/lib/hp
+
+	find "${DESTDIR}/usr/share/hplip" -type f -name "*.so" | while read f; do
+		lib_dir="${f%/*}"
+		lib_name="${f##*/}"
+		ln -sf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
+	done
+}

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

* Re: [PR PATCH] [Updated] New Package: hplip-plugin-3.22.6
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (3 preceding siblings ...)
  2022-11-04  6:27 ` dataCobra
@ 2022-11-10  5:54 ` dataCobra
  2022-11-10  5:57 ` dataCobra
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-11-10  5:54 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages hplip-plugin
https://github.com/void-linux/void-packages/pull/39147

New Package: hplip-plugin-3.22.6
I've got asked by @biopsin to fix his PR #37287.

The corresponding `hplip` PR is #39146.

I've changed some things in the template to standardize it.

---

**The package is restricted.**

#### Testing the changes
- I tested the changes in this PR: **YES - tested by @biopsin**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686 (crossbuild)
  - aarch64 (crossbuild)
  - armv7l (crossbuild)
  - armv6l (crossbuild)


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

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

From 3f1030a2ba87c82f3b1eed1279ebb93feb338ef8 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Wed, 7 Sep 2022 10:36:22 +0200
Subject: [PATCH] New Package: hplip-plugin-3.22.6

---
 srcpkgs/hplip-plugin/template | 61 +++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/hplip-plugin/template

diff --git a/srcpkgs/hplip-plugin/template b/srcpkgs/hplip-plugin/template
new file mode 100644
index 000000000000..936386bd98a0
--- /dev/null
+++ b/srcpkgs/hplip-plugin/template
@@ -0,0 +1,61 @@
+# Template file for 'hplip-plugin'
+# Must be in sync with main hplip package
+pkgname=hplip-plugin
+version=3.22.6
+revision=1
+archs="i686 x86_64 armv[67]l aarch64"
+hostmakedepends="tar"
+short_desc="Binary plugin for HPs hplip printer driver library"
+maintainer="biopsin <biopsin@teknik.io>"
+license="custom:proprietary"
+homepage="https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html"
+changelog="https://developers.hp.com/hp-linux-imaging-and-printing/release_notes"
+distfiles="https://developers.hp.com/sites/default/files/hplip-${version}-plugin.run"
+checksum=3124023e749754bad74b59cf208be5531d31b216f25343a5a5f2ce82164c82fb
+repository=nonfree
+restricted=yes
+
+ignore_elf_dirs="/usr/share/hplip"
+
+do_extract() {
+	/bin/sh ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hplip-${version}-plugin.run \
+		--noexec --target ${wrksrc}
+}
+
+do_install() {
+	vmkdir usr/share/hplip/data/firmware
+	vmkdir usr/share/hplip/fax/plugins
+	vmkdir usr/share/hplip/prnt/plugins
+	vmkdir usr/share/hplip/scan/plugins
+	vmkdir usr/share/licenses/hplip-plugin
+	vmkdir var/lib/hp
+
+	case "$XBPS_TARGET_MACHINE" in
+		i686) _arch='x86_32' ;;
+		x86_64) _arch='x86_64' ;;
+		armv[67]l) _arch='arm32' ;;
+		aarch64) _arch='arm64' ;;
+	esac
+
+	vcopy plugin.spec usr/share/hplip/
+	vcopy hp_laserjet_*.fw.gz usr/share/hplip/data/firmware/
+	vcopy fax_marvell-"$_arch".so usr/share/hplip/fax/plugins/
+	vcopy hbpl1-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy lj-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy bb_*-"$_arch".so usr/share/hplip/scan/plugins/
+	vlicense license.txt
+
+	cat << EOF > hplip.state
+[plugin]
+installed = 1
+eula = 1
+version = ${version}
+EOF
+	vcopy hplip.state var/lib/hp
+
+	find "${DESTDIR}/usr/share/hplip" -type f -name "*.so" | while read f; do
+		lib_dir="${f%/*}"
+		lib_name="${f##*/}"
+		ln -sf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
+	done
+}

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

* Re: [PR PATCH] [Updated] New Package: hplip-plugin-3.22.6
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (4 preceding siblings ...)
  2022-11-10  5:54 ` dataCobra
@ 2022-11-10  5:57 ` dataCobra
  2022-11-16 13:36 ` New Package: hplip-plugin-3.22.10 dataCobra
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-11-10  5:57 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages hplip-plugin
https://github.com/void-linux/void-packages/pull/39147

New Package: hplip-plugin-3.22.6
I've got asked by @biopsin to fix his PR #37287.

The corresponding `hplip` PR is #39146.

I've changed some things in the template to standardize it.

---

**The package is restricted.**

#### Testing the changes
- I tested the changes in this PR: **YES - tested by @biopsin**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686 (crossbuild)
  - aarch64 (crossbuild)
  - armv7l (crossbuild)
  - armv6l (crossbuild)


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

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

From 0c17bd70a7e654097e814e02cb320f1e73cca778 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Thu, 10 Nov 2022 06:56:23 +0100
Subject: [PATCH] New package: hplip-plugin-3.22.10

---
 srcpkgs/hplip-plugin/template | 61 +++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 srcpkgs/hplip-plugin/template

diff --git a/srcpkgs/hplip-plugin/template b/srcpkgs/hplip-plugin/template
new file mode 100644
index 000000000000..a7fe4808c985
--- /dev/null
+++ b/srcpkgs/hplip-plugin/template
@@ -0,0 +1,61 @@
+# Template file for 'hplip-plugin'
+# Must be in sync with main hplip package
+pkgname=hplip-plugin
+version=3.22.10
+revision=1
+archs="i686 x86_64 armv[67]l aarch64"
+hostmakedepends="tar"
+short_desc="Binary plugin for HPs hplip printer driver library"
+maintainer="biopsin <biopsin@teknik.io>"
+license="custom:proprietary"
+homepage="https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html"
+changelog="https://developers.hp.com/hp-linux-imaging-and-printing/release_notes"
+distfiles="https://developers.hp.com/sites/default/files/hplip-${version}-plugin.run"
+checksum=bb9648ea0626a9b3cfa29e260348d5d617f328c55b66eda346384c04f4740b1f
+repository=nonfree
+restricted=yes
+
+ignore_elf_dirs="/usr/share/hplip"
+
+do_extract() {
+	/bin/sh ${XBPS_SRCDISTDIR}/${pkgname}-${version}/hplip-${version}-plugin.run \
+		--noexec --target ${wrksrc}
+}
+
+do_install() {
+	vmkdir usr/share/hplip/data/firmware
+	vmkdir usr/share/hplip/fax/plugins
+	vmkdir usr/share/hplip/prnt/plugins
+	vmkdir usr/share/hplip/scan/plugins
+	vmkdir usr/share/licenses/hplip-plugin
+	vmkdir var/lib/hp
+
+	case "$XBPS_TARGET_MACHINE" in
+		i686) _arch='x86_32' ;;
+		x86_64) _arch='x86_64' ;;
+		armv[67]l) _arch='arm32' ;;
+		aarch64) _arch='arm64' ;;
+	esac
+
+	vcopy plugin.spec usr/share/hplip/
+	vcopy hp_laserjet_*.fw.gz usr/share/hplip/data/firmware/
+	vcopy fax_marvell-"$_arch".so usr/share/hplip/fax/plugins/
+	vcopy hbpl1-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy lj-"$_arch".so usr/share/hplip/prnt/plugins/
+	vcopy bb_*-"$_arch".so usr/share/hplip/scan/plugins/
+	vlicense license.txt
+
+	cat << EOF > hplip.state
+[plugin]
+installed = 1
+eula = 1
+version = ${version}
+EOF
+	vcopy hplip.state var/lib/hp
+
+	find "${DESTDIR}/usr/share/hplip" -type f -name "*.so" | while read f; do
+		lib_dir="${f%/*}"
+		lib_name="${f##*/}"
+		ln -sf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
+	done
+}

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

* Re: New Package: hplip-plugin-3.22.10
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (5 preceding siblings ...)
  2022-11-10  5:57 ` dataCobra
@ 2022-11-16 13:36 ` dataCobra
  2022-11-16 14:08 ` dataCobra
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-11-16 13:36 UTC (permalink / raw)
  To: ml

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

New comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/39147#issuecomment-1317035990

Comment:
:warning: This version does need to be merged together with #40434. :warning:

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

* Re: New Package: hplip-plugin-3.22.10
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (6 preceding siblings ...)
  2022-11-16 13:36 ` New Package: hplip-plugin-3.22.10 dataCobra
@ 2022-11-16 14:08 ` dataCobra
  2022-11-16 14:08 ` [PR PATCH] [Closed]: " dataCobra
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-11-16 14:08 UTC (permalink / raw)
  To: ml

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

New comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/39147#issuecomment-1317080856

Comment:
This is now part of the #40434 PR which updates hplip. :+1:

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

* Re: [PR PATCH] [Closed]: New Package: hplip-plugin-3.22.10
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (7 preceding siblings ...)
  2022-11-16 14:08 ` dataCobra
@ 2022-11-16 14:08 ` dataCobra
  2022-11-16 14:11 ` [PR REVIEW] " sgn
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-11-16 14:08 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

New Package: hplip-plugin-3.22.10
https://github.com/void-linux/void-packages/pull/39147

Description:
I've got asked by @biopsin to fix his PR #37287.

The corresponding `hplip` PR is #39146.

I've changed some things in the template to standardize it.

---

**The package is restricted.**

#### Testing the changes
- I tested the changes in this PR: **YES - tested by @biopsin**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686 (crossbuild)
  - aarch64 (crossbuild)
  - armv7l (crossbuild)
  - armv6l (crossbuild)


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

* Re: [PR REVIEW] New Package: hplip-plugin-3.22.10
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (8 preceding siblings ...)
  2022-11-16 14:08 ` [PR PATCH] [Closed]: " dataCobra
@ 2022-11-16 14:11 ` sgn
  2022-11-16 14:11 ` sgn
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2022-11-16 14:11 UTC (permalink / raw)
  To: ml

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

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/39147#discussion_r1024038750

Comment:
I prefer simply copy all of them. IMHO, `/usr/share` should be the same between multiple arch.

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

* Re: [PR REVIEW] New Package: hplip-plugin-3.22.10
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (9 preceding siblings ...)
  2022-11-16 14:11 ` [PR REVIEW] " sgn
@ 2022-11-16 14:11 ` sgn
  2022-11-16 14:19 ` dataCobra
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2022-11-16 14:11 UTC (permalink / raw)
  To: ml

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

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/39147#discussion_r1024039897

Comment:
```suggestion
	cat <<-EOF >hplip.state
	[plugin]
	installed = 1
	eula = 1
	version = ${version}
	EOF
```

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

* Re: [PR REVIEW] New Package: hplip-plugin-3.22.10
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (10 preceding siblings ...)
  2022-11-16 14:11 ` sgn
@ 2022-11-16 14:19 ` dataCobra
  2022-11-16 14:25 ` dataCobra
  2022-11-16 14:30 ` sgn
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-11-16 14:19 UTC (permalink / raw)
  To: ml

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

New review comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/39147#discussion_r1024063139

Comment:
But it would be cleaner this way. To copy all would be a bit bloated don't you think? :slightly_smiling_face: 

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

* Re: [PR REVIEW] New Package: hplip-plugin-3.22.10
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (11 preceding siblings ...)
  2022-11-16 14:19 ` dataCobra
@ 2022-11-16 14:25 ` dataCobra
  2022-11-16 14:30 ` sgn
  13 siblings, 0 replies; 15+ messages in thread
From: dataCobra @ 2022-11-16 14:25 UTC (permalink / raw)
  To: ml

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

New review comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/39147#discussion_r1024070969

Comment:
This is not working and gives an error.

This would additionally also add the spaces/tabs in the hplip.state file.

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

* Re: [PR REVIEW] New Package: hplip-plugin-3.22.10
  2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
                   ` (12 preceding siblings ...)
  2022-11-16 14:25 ` dataCobra
@ 2022-11-16 14:30 ` sgn
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2022-11-16 14:30 UTC (permalink / raw)
  To: ml

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

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/39147#discussion_r1024076969

Comment:
It's TAB characters, not space. If you put spaces there, it will be an error.

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

end of thread, other threads:[~2022-11-16 14:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-07  9:08 [PR PATCH] New Package: hplip-plugin-3.22.6 dataCobra
2022-09-07  9:08 ` [PR PATCH] [Updated] " dataCobra
2022-09-14  4:52 ` dataCobra
2022-10-15  8:01 ` dataCobra
2022-11-04  6:27 ` dataCobra
2022-11-10  5:54 ` dataCobra
2022-11-10  5:57 ` dataCobra
2022-11-16 13:36 ` New Package: hplip-plugin-3.22.10 dataCobra
2022-11-16 14:08 ` dataCobra
2022-11-16 14:08 ` [PR PATCH] [Closed]: " dataCobra
2022-11-16 14:11 ` [PR REVIEW] " sgn
2022-11-16 14:11 ` sgn
2022-11-16 14:19 ` dataCobra
2022-11-16 14:25 ` dataCobra
2022-11-16 14:30 ` sgn

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