Github messages for voidlinux
 help / color / mirror / Atom feed
From: joshuakraemer <joshuakraemer@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: pfusp-2.2.0
Date: Tue, 03 May 2022 12:25:56 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36972@inbox.vuxu.org> (raw)

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

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

https://github.com/joshuakraemer/void-packages new-package-pfusp
https://github.com/void-linux/void-packages/pull/36972

New package: pfusp-2.2.0
This is the proprietary SANE backend for Fujitsu SP series scanners.

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

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


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-pfusp-36972.patch --]
[-- Type: text/x-diff, Size: 5176 bytes --]

From a59e5415f13012627a2094db21a55303c33a65c4 Mon Sep 17 00:00:00 2001
From: Joshua <joshua@kraemer.link>
Date: Tue, 3 May 2022 12:08:44 +0200
Subject: [PATCH] New package: pfusp-2.2.0

---
 srcpkgs/pfusp/files/60-pfusp.rules          | 26 ++++++++++++
 srcpkgs/pfusp/files/consumablessettings.xml | 15 +++++++
 srcpkgs/pfusp/files/pfusp                   |  1 +
 srcpkgs/pfusp/files/pfusp.conf              | 21 ++++++++++
 srcpkgs/pfusp/files/simple-scan.conf        |  1 +
 srcpkgs/pfusp/template                      | 45 +++++++++++++++++++++
 6 files changed, 109 insertions(+)
 create mode 100644 srcpkgs/pfusp/files/60-pfusp.rules
 create mode 100644 srcpkgs/pfusp/files/consumablessettings.xml
 create mode 100644 srcpkgs/pfusp/files/pfusp
 create mode 100644 srcpkgs/pfusp/files/pfusp.conf
 create mode 100644 srcpkgs/pfusp/files/simple-scan.conf
 create mode 100644 srcpkgs/pfusp/template

diff --git a/srcpkgs/pfusp/files/60-pfusp.rules b/srcpkgs/pfusp/files/60-pfusp.rules
new file mode 100644
index 000000000000..bf48b73d7286
--- /dev/null
+++ b/srcpkgs/pfusp/files/60-pfusp.rules
@@ -0,0 +1,26 @@
+ACTION!="add", GOTO="pfusp_scanner_rules_end"
+ENV{DEVTYPE}!="usb_device", GOTO="pfusp_scanner_rules_end"
+ATTR{idVendor}!="04c5", GOTO="pfusp_scanner_rules_end"
+
+LABEL="pfusp_scanner_rules_begin"
+#SP-1120
+ATTRS{idProduct}=="1473", ENV{pfusp_driver}="yes"
+#SP-1125
+ATTRS{idProduct}=="1475", ENV{pfusp_driver}="yes"
+#SP-1130
+ATTRS{idProduct}=="1476", ENV{pfusp_driver}="yes"
+#SP-1425
+ATTRS{idProduct}=="1524", ENV{pfusp_driver}="yes"
+#SP-1120N
+ATTRS{idProduct}=="1625", ENV{pfusp_driver}="yes"
+#SP-1125N
+ATTRS{idProduct}=="1626", ENV{pfusp_driver}="yes"
+#SP-1130N
+ATTRS{idProduct}=="1627", ENV{pfusp_driver}="yes"
+# Give scanner users read/write permissions on the device.
+ENV{pfusp_driver}=="yes", MODE="0666", OWNER="root", GROUP="root"
+
+# Device detection by pfusp depends on libsane_matched being set.
+ENV{pfusp_driver}=="yes", ENV{libsane_matched}="yes"
+
+LABEL="pfusp_scanner_rules_end"
diff --git a/srcpkgs/pfusp/files/consumablessettings.xml b/srcpkgs/pfusp/files/consumablessettings.xml
new file mode 100644
index 000000000000..b0d094e1c551
--- /dev/null
+++ b/srcpkgs/pfusp/files/consumablessettings.xml
@@ -0,0 +1,15 @@
+<Root>
+<SP-1120>
+<IgnoreEnergyStar3>0</IgnoreEnergyStar3>
+</SP-1120>
+<SP-1125>
+<IgnoreEnergyStar3>0</IgnoreEnergyStar3>
+</SP-1125>
+<SP-1130>
+<IgnoreEnergyStar3>0</IgnoreEnergyStar3>
+</SP-1130>
+<SP-1425>
+<IgnoreEnergyStar3>0</IgnoreEnergyStar3>
+</SP-1425>
+<Version>2.2.0</Version>
+</Root>
diff --git a/srcpkgs/pfusp/files/pfusp b/srcpkgs/pfusp/files/pfusp
new file mode 100644
index 000000000000..fcbab2419252
--- /dev/null
+++ b/srcpkgs/pfusp/files/pfusp
@@ -0,0 +1 @@
+pfusp
diff --git a/srcpkgs/pfusp/files/pfusp.conf b/srcpkgs/pfusp/files/pfusp.conf
new file mode 100644
index 000000000000..432c1abe7357
--- /dev/null
+++ b/srcpkgs/pfusp/files/pfusp.conf
@@ -0,0 +1,21 @@
+#SP-1120
+usb 0x04c5 0x1473
+
+#SP-1125
+usb 0x04c5 0x1475
+
+#SP-1130
+usb 0x04c5 0x1476
+
+#SP-1425
+usb 0x04c5 0x1524
+
+#SP-1120N
+usb 0x04c5 0x1625
+
+#SP-1125N
+usb 0x04c5 0x1626
+
+#SP-1130N
+usb 0x04c5 0x1627
+
diff --git a/srcpkgs/pfusp/files/simple-scan.conf b/srcpkgs/pfusp/files/simple-scan.conf
new file mode 100644
index 000000000000..69b02c8febdd
--- /dev/null
+++ b/srcpkgs/pfusp/files/simple-scan.conf
@@ -0,0 +1 @@
+PAPER_SIZE=0
diff --git a/srcpkgs/pfusp/template b/srcpkgs/pfusp/template
new file mode 100644
index 000000000000..81be24d19e5c
--- /dev/null
+++ b/srcpkgs/pfusp/template
@@ -0,0 +1,45 @@
+# Template file for 'pfusp'
+pkgname=pfusp
+version=2.2.0
+revision=1
+archs="x86_64"
+hostmakedepends="binutils tar xz"
+depends="sane"
+short_desc="SANE backend for Fujitsu SP series scanners"
+maintainer="Joshua Krämer <joshua@kraemer.link>"
+license="custom:EULA"
+homepage="https://imagescanner.fujitsu.com/global/dl/index-sps.html"
+restricted=yes
+repository=nonfree
+distfiles="https://origin.pfultd.com/downloads/IMAGE/driver/ubuntu/220/pfusp-ubuntu_${version}_amd64.deb
+ https://origin.pfultd.com/downloads/IMAGE/driver/ubuntu/220/P2U3-0210-03ENZ0.pdf"
+checksum="6bd1289b52a2d2574f5260dd29ea9e1a9a75bd6f02ccc904c9fc3d6f2d8642dc
+ cbf3cbb95d7266a53b8203c590af8256787b588b5ba12cfb30c645edf8d2fd85"
+
+do_extract() {
+	ar p ${XBPS_SRCDISTDIR}/${pkgname}-${version}/pfusp-ubuntu_${version}_amd64.deb data.tar.xz | tar -xJf -
+}
+
+do_install() {
+	vcopy "*" /
+	vdoc opt/pfusp/readme.txt
+	vdoc opt/pfusp/readmeJPN.txt
+	vdoc ${XBPS_SRCDISTDIR}/${pkgname}-${version}/P2U3-0210-03ENZ0.pdf
+	vlicense opt/pfusp/LicenseENU.txt
+	vlicense opt/pfusp/LicenseJPN.txt
+	rm ${DESTDIR}/opt/pfusp/*.txt
+
+	cd ${DESTDIR}/opt/pfusp
+	chmod 755 bin/* consumables/* etc/pfuspsysinfo.sh lib/* pfuspgetinfo/*
+
+	vmkdir usr/bin
+	vmkdir etc
+	ln -s -t ${DESTDIR}/usr/bin /opt/pfusp/consumables/pfuspconsumables
+	ln -s -t ${DESTDIR}/usr/bin /opt/pfusp/bin/pfuspscanmanager
+	ln -s /opt/pfusp/etc ${DESTDIR}/etc/pfusp
+
+	cd ${FILESDIR}
+	vinstall 60-pfusp.rules 644 usr/lib/udev/rules.d
+	vinstall pfusp 644 etc/sane.d/dll.d
+	vcopy "pfusp.conf simple-scan.conf consumablessettings.xml" opt/pfusp/etc
+}

             reply	other threads:[~2022-05-03 10:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03 10:25 joshuakraemer [this message]
2022-05-03 10:34 ` [PR PATCH] [Updated] " joshuakraemer
2022-08-07  2:14 ` github-actions
2022-08-08  8:50 ` joshuakraemer
2022-11-08  2:13 ` github-actions
2022-11-08  8:55 ` joshuakraemer
2023-02-07  2:27 ` github-actions
2023-02-22  2:01 ` [PR PATCH] [Closed]: " github-actions
2023-03-08 16:43 ` [PR PATCH] [Updated] " joshuakraemer
2023-06-07  2:06 ` github-actions
2023-06-22  1:59 ` [PR PATCH] [Closed]: " github-actions

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36972@inbox.vuxu.org \
    --to=joshuakraemer@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).