Github messages for voidlinux
 help / color / mirror / Atom feed
From: dataCobra <dataCobra@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New Package: hplip-plugin-3.22.6
Date: Wed, 07 Sep 2022 11:08:50 +0200	[thread overview]
Message-ID: <20220907090850.jhxGhgcZFwraA1g1r8Vbh9WAE0T8Ww2-E_DudVZ7d7w@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39147@inbox.vuxu.org>

[-- 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
+}

  reply	other threads:[~2022-09-07  9:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07  9:08 [PR PATCH] " dataCobra
2022-09-07  9:08 ` dataCobra [this message]
2022-09-14  4:52 ` [PR PATCH] [Updated] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220907090850.jhxGhgcZFwraA1g1r8Vbh9WAE0T8Ww2-E_DudVZ7d7w@z \
    --to=datacobra@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).