Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: cndrvcups-lt-5.00
@ 2021-06-13 14:09 baal-zebub
  2021-06-14 11:39 ` baal-zebub
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-13 14:09 UTC (permalink / raw)
  To: ml

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

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

https://github.com/baal-zebub/void-packages cndrvcups-lt
https://github.com/void-linux/void-packages/pull/31451

New package: cndrvcups-lt-5.00
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 4826fdd7b672cf7cf9c4186a375c245566da4898 Mon Sep 17 00:00:00 2001
From: Kamil Smardzewski <roderyk197@gmail.com>
Date: Sat, 12 Jun 2021 18:21:08 +0200
Subject: [PATCH] New package: cndrvcups-lt-5.00

---
 common/shlibs                    | 22 +++++++++++++++++
 srcpkgs/cndrvcups-lt/INSTALL.msg |  3 +++
 srcpkgs/cndrvcups-lt/REMOVE.msg  |  3 +++
 srcpkgs/cndrvcups-lt/template    | 42 ++++++++++++++++++++++++++++++++
 4 files changed, 70 insertions(+)
 create mode 100644 srcpkgs/cndrvcups-lt/INSTALL.msg
 create mode 100644 srcpkgs/cndrvcups-lt/REMOVE.msg
 create mode 100644 srcpkgs/cndrvcups-lt/template

diff --git a/common/shlibs b/common/shlibs
index 179fe27443be..d4d1327fbf62 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4012,3 +4012,25 @@ libbasu.so.0 basu-0.2.0_1
 libXcomp.so.3 nx-libs-3.5.99.24_1
 libXcompshad.so.3 nx-libs-3.5.99.24_1
 libNX_X11.so.6 nx-libs-3.5.99.24_1
+libcaio_usb_cdcr.so.1 cndrvcups-lt-5.00_1
+libccpd_utilr.so.1 cndrvcups-lt-5.00_1
+libcomm_ncapcaior.so.1 cndrvcups-lt-5.00_1
+libcomm_stdoutr.so.1 cndrvcups-lt-5.00_1
+libcomm_usbmlportr.so.1 cndrvcups-lt-5.00_1
+libcomm_usbsockr.so cndrvcups-lt-5.00_1
+libcomm_usbsockr.so.1 cndrvcups-lt-5.00_1
+libcomm_websrvr.so.1 cndrvcups-lt-5.00_1
+libCUPS_Communicatorr.so.1 cndrvcups-lt-5.00_1
+libCommIsolationr.so cndrvcups-lt-5.00_1
+libCommIsolationr.so.1 cndrvcups-lt-5.00_1
+libcanon_commonr.so.1 cndrvcups-lt-5.00_1
+libinfo_analyzer.so.1 cndrvcups-lt-5.00_1
+libinfor.so.1 cndrvcups-lt-5.00_1
+libColorGearC.so.2 cndrvcups-lt-5.00_1
+libColorGearCsfp.so.2 cndrvcups-lt-5.00_1
+libcaepcmsfp.so.1 cndrvcups-lt-5.00_1
+libcanon_slimsfp.so.1 cndrvcups-lt-5.00_1
+libcanonncapr.so.1 cndrvcups-lt-5.00_1
+libcnncapcmr.so.1 cndrvcups-lt-5.00_1
+libncapfilterr.so.1 cndrvcups-lt-5.00_1
+libuictlncapr.so.1 cndrvcups-lt-5.00_1
diff --git a/srcpkgs/cndrvcups-lt/INSTALL.msg b/srcpkgs/cndrvcups-lt/INSTALL.msg
new file mode 100644
index 000000000000..8b4517304ea2
--- /dev/null
+++ b/srcpkgs/cndrvcups-lt/INSTALL.msg
@@ -0,0 +1,3 @@
+It is recommended to reload udev rules after installation, e.g.:
+
+	# udevadm control --reload-rules
diff --git a/srcpkgs/cndrvcups-lt/REMOVE.msg b/srcpkgs/cndrvcups-lt/REMOVE.msg
new file mode 100644
index 000000000000..c6cc3a1c9053
--- /dev/null
+++ b/srcpkgs/cndrvcups-lt/REMOVE.msg
@@ -0,0 +1,3 @@
+It is recommended to reload udev rules after removal, e.g.:
+
+	# udevadm control --reload-rules
diff --git a/srcpkgs/cndrvcups-lt/template b/srcpkgs/cndrvcups-lt/template
new file mode 100644
index 000000000000..d72645f68b6b
--- /dev/null
+++ b/srcpkgs/cndrvcups-lt/template
@@ -0,0 +1,42 @@
+# Template file for 'cndrvcups-lt'
+pkgname=cndrvcups-lt
+version=5.00
+revision=1
+archs="i686 x86_64"
+build_style=fetch
+hostmakedepends="binutils"
+depends="colord cups cups-filters eudev libglade libusb"
+short_desc="UFRII LT printer driver for Canon LBP printers"
+maintainer="Kamil Smardzewski <roderyk197@gmail.com>"
+license="custom:canon,GPL-2.0-or-later"
+homepage="https://www.canon-europe.com/support/consumer_products/product_ranges/printers/i_sensys/"
+distfiles="https://gdlp01.c-wss.com/gds/0/0100005950/10/linux-UFRIILT-drv-v500-uken-18.tar.gz"
+checksum="46888140016bc1096694a0fd6fd3f6ad393970b8153756373a382dc82390f259"
+repository="nonfree"
+nopie=yes
+
+case $XBPS_TARGET_MACHINE in
+	x86_64)
+		_bits=64
+		_arch=amd64
+		;;
+	i686)
+		_bits=32
+		_arch=i386
+		;;
+esac
+
+pre_install() {
+	bsdtar xvf linux-UFRIILT-drv-v500-uken-18.tar.gz
+	ar x linux-UFRIILT-drv-v500-uken/${_bits}-bit_Driver/Debian/cnrdrvcups-ufr2lt-uk_5.00-1_${_arch}.deb
+	bsdtar xpvf data.tar.gz
+}
+
+do_install() {
+	vcopy usr/ usr/
+
+	vmkdir usr/lib/udev/rules.d
+	vinstall etc/udev/rules.d/80-usb-ncapstatusui2l.rules 644 usr/lib/udev/rules.d
+
+	vlicense linux-UFRIILT-drv-v500-uken/Documents/LICENSE-EN.txt LICENSE
+}

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

* Re: New package: cndrvcups-lt-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
@ 2021-06-14 11:39 ` baal-zebub
  2021-06-14 11:40 ` baal-zebub
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-14 11:39 UTC (permalink / raw)
  To: ml

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

New comment by baal-zebub on void-packages repository

https://github.com/void-linux/void-packages/pull/31451#issuecomment-860617268

Comment:
I've found out that there is a source package inside the distfile that could be used instead of the .deb package. Then a name change or even a split would be in order. I'll try this and also move INSTALL.msg and REMOVE.msg to README.voidlinux

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

* Re: New package: cndrvcups-lt-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
  2021-06-14 11:39 ` baal-zebub
@ 2021-06-14 11:40 ` baal-zebub
  2021-06-15 16:17 ` [PR PATCH] [Updated] " baal-zebub
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-14 11:40 UTC (permalink / raw)
  To: ml

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

New comment by baal-zebub on void-packages repository

https://github.com/void-linux/void-packages/pull/31451#issuecomment-860617268

Comment:
I've found out that there is a source package inside the distfile that could be used instead of the .deb package. Then a name change or maybe even a split would be in order. I'll try this and also move INSTALL.msg and REMOVE.msg to README.voidlinux

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

* Re: [PR PATCH] [Updated] New package: cndrvcups-lt-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
  2021-06-14 11:39 ` baal-zebub
  2021-06-14 11:40 ` baal-zebub
@ 2021-06-15 16:17 ` baal-zebub
  2021-06-15 16:51 ` baal-zebub
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-15 16:17 UTC (permalink / raw)
  To: ml

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

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

https://github.com/baal-zebub/void-packages cndrvcups-lt
https://github.com/void-linux/void-packages/pull/31451

New package: cndrvcups-lt-5.00
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 37e58a524cb02c3355e00c8357c2be3bbe2b84df Mon Sep 17 00:00:00 2001
From: Kamil Smardzewski <roderyk197@gmail.com>
Date: Sat, 12 Jun 2021 18:21:08 +0200
Subject: [PATCH] New package: cndrvcups-lt-5.00

---
 common/shlibs                                 |  25 +++
 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux |   5 +
 srcpkgs/cnrdrvcups-sfp/template               | 185 ++++++++++++++++++
 3 files changed, 215 insertions(+)
 create mode 100644 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
 create mode 100644 srcpkgs/cnrdrvcups-sfp/template

diff --git a/common/shlibs b/common/shlibs
index 179fe27443be..f74bfb441a36 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4012,3 +4012,28 @@ libbasu.so.0 basu-0.2.0_1
 libXcomp.so.3 nx-libs-3.5.99.24_1
 libXcompshad.so.3 nx-libs-3.5.99.24_1
 libNX_X11.so.6 nx-libs-3.5.99.24_1
+libcaio_usb_cdcr.so.1 cnrdrvcups-sfp-5.00_1
+libccpd_utilr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_ncapcaior.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_stdoutr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbmlportr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_websrvr.so.1 cnrdrvcups-sfp-5.00_1
+libCUPS_Communicatorr.so.1 cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_commonr.so.1 cnrdrvcups-sfp-5.00_1
+libinfo_analyzer.so.1 cnrdrvcups-sfp-5.00_1
+libinfor.so.1 cnrdrvcups-sfp-5.00_1
+libColorGearC.so.2 cnrdrvcups-sfp-5.00_1
+libColorGearCsfp.so.2 cnrdrvcups-sfp-5.00_1
+libcaepcmsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_slimsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanonncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnncapcmr.so.1 cnrdrvcups-sfp-5.00_1
+libncapfilterr.so.1 cnrdrvcups-sfp-5.00_1
+libuictlncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnaccm.so.1 cnrdrvcups-sfp-5.00_1
+libcaiowrapsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcnlbcmr.so.1 cnrdrvcups-sfp-5.00_1
diff --git a/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
new file mode 100644
index 000000000000..54efb628f9e2
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
@@ -0,0 +1,5 @@
+If output of 'lsusb | grep "04a9:27b7"' returns a device, then it is recommended
+to reload udev rules after installation, as the package installs a new rule for
+this device, e.g.:
+
+	# udevadm control --reload-rules
diff --git a/srcpkgs/cnrdrvcups-sfp/template b/srcpkgs/cnrdrvcups-sfp/template
new file mode 100644
index 000000000000..9f23c771bb0c
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/template
@@ -0,0 +1,185 @@
+# Template file for 'cnrdrvcups-sfp'
+pkgname=cnrdrvcups-sfp
+version=5.00
+revision=1
+archs="i686 x86_64"
+create_wrksrc=yes
+build_wrksrc=source
+_common_dir=cnrdrvcups-common-${version}
+_driver_dir=${pkgname}-${version}
+hostmakedepends="autoconf automake glib-devel gettext libtool libxml2-devel pkg-config"
+makedepends="atk-devel cups-devel gtk+-devel libglade-devel"
+depends="colord cups cups-filters eudev libglade libusb"
+short_desc="UFRII LT printer driver for Canon LBP printers"
+maintainer="Kamil Smardzewski <roderyk197@gmail.com>"
+license="custom:canon,GPL-2.0-or-later,MIT"
+homepage="https://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp6030w.html?type=drivers&language=en&os=linux%20(64-bit)"
+distfiles="https://gdlp01.c-wss.com/gds/0/0100005950/10/linux-UFRIILT-drv-v500-uken-18.tar.gz"
+checksum="46888140016bc1096694a0fd6fd3f6ad393970b8153756373a382dc82390f259"
+repository="nonfree"
+nopie=yes
+
+case $XBPS_TARGET_MACHINE in
+	x86_64)
+		_bits=64
+		;;
+	i686)
+		_bits=32
+		;;
+esac
+
+CFLAGS="-fcommon"
+
+post_extract() {
+	mkdir ${build_wrksrc}
+	bsdtar xvf linux-UFRIILT-drv-v500-uken/Sources/${pkgname}-${version}-1.tar.gz -C ${build_wrksrc}
+}
+
+pre_configure() {
+	vsed -e '2a export LIBS="-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0"' -i "${_common_dir}/cngplp/autogen.sh"
+	vsed -e '2a export LIBS="-latk-1.0 -lgobject-2.0 -lglib-2.0 -lgdk_pixbuf-2.0 -lcups"' -i "${_driver_dir}/StatusMonitor/autogen.sh"
+
+	for subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${subdir} && autoreconf -i )
+	done
+
+	for subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${subdir} && autoreconf -i )
+	done
+}
+
+do_configure() {
+	local _buftool_abs_path="${wrksrc}/${build_wrksrc}/${_common_dir}/buftool"
+
+	( cd ${_common_dir}/buftool && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin --disable-shared --enable-static )
+	( cd ${_common_dir}/cngplp && ./autogen.sh ${configure_args} COMMON_SUFFIX=2l )
+	( cd ${_common_dir}/cnjbig && ./autogen.sh ${configure_args} )
+	( cd ${_common_dir}/rasterfilter && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} )
+
+	( cd ${_driver_dir}/ppd && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/cngplp && ./autogen.sh ${configure_args} --prefix=/usr )
+	( cd ${_driver_dir}/cngplp/files && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/StatusMonitor && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+	( cd ${_driver_dir}/cpca && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+}
+
+do_build() {
+	( cd ${_common_dir} && make all )
+	( cd ${_driver_dir} && make all )
+}
+
+pre_install() {
+	cd "lib/libs${_bits}"
+
+	rm "libcanon_slimsfp.so" "libcanon_slimsfp.so.1"
+	rm "libinfor.so" "libinfor.so.1"
+
+	ln -s libcaepcmsfp.so.1.0 libcaepcmsfp.so.1
+	ln -s libcanon_slimsfp.so.1.0.0 libcanon_slimsfp.so.1
+	ln -s libcanon_slimsfp.so.1.0.0 libcanon_slimsfp.so
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so.2
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so
+
+	ln -s libccpd_utilr.so.1.0.0 libccpd_utilr.so
+	ln -s libccpd_utilr.so.1.0.0 libccpd_utilr.so.1
+	ln -s libcomm_stdoutr.so.1.0.0 libcomm_stdoutr.so
+	ln -s libcomm_stdoutr.so.1.0.0 libcomm_stdoutr.so.1
+	ln -s libcomm_usbmlportr.so.1.0.0 libcomm_usbmlportr.so
+	ln -s libcomm_usbmlportr.so.1.0.0 libcomm_usbmlportr.so.1
+	ln -s libcomm_usbsockr.so.1.0.0 libcomm_usbsockr.so
+	ln -s libcomm_usbsockr.so.1.0.0 libcomm_usbsockr.so.1
+	ln -s libcomm_websrvr.so.1.0.0 ibcomm_websrvr.so
+	ln -s libcomm_websrvr.so.1.0.0 ibcomm_websrvr.so.1
+	ln -s libcomm_ncapcaior.so.1.0.0 libcomm_ncapcaior.so
+	ln -s libcomm_ncapcaior.so.1.0.0 libcomm_ncapcaior.so.1
+	ln -s libcaio_usb_cdcr.so.1.0.0 libcaio_usb_cdcr.so
+	ln -s libcaio_usb_cdcr.so.1.0.0 libcaio_usb_cdcr.so.1
+
+	ln -s libCUPS_Communicatorr.so.1.0.0 libCUPS_Communicatorr.so
+	ln -s libCUPS_Communicatorr.so.1.0.0 libCUPS_Communicatorr.so.1
+	ln -s libCommIsolationr.so.1.0.0 libCommIsolationr.so
+	ln -s libCommIsolationr.so.1.0.0 libCommIsolationr.so.1
+	ln -s libcanon_commonr.so.1.0.0 libcanon_commonr.so
+	ln -s libcanon_commonr.so.1.0.0 libcanon_commonr.so.1
+	ln -s libinfor.so.1.0.0 libinfor.so
+	ln -s libinfor.so.1.0.0 libinfor.so.1
+	ln -s libinfo_analyzer.so.1.0.0 libinfo_analyzer.so
+	ln -s libinfo_analyzer.so.1.0.0 libinfo_analyzer.so.1
+}
+
+do_install() {
+	for subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${subdir} && make install DESTDIR=${DESTDIR} COMMON_SUFFIX=2 )
+	done
+
+	for subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${subdir} && make install DESTDIR=${DESTDIR} )
+	done
+
+	pushd "lib/libs${_bits}"
+
+	vbin cnsetuputil2l
+	vcopy lib*.so* usr/lib
+
+
+	for _locale in "de" "es" "fr" "it" "ja" "ko" "zh_CN" "zh_TW"
+	do
+		vmkdir usr/share/locale/${_locale}/LC_MESSAGES
+		vinstall ${_locale}/LC_MESSAGES/cnsetuputil2l.mo 644 usr/share/locale/${_locale}/LC_MESSAGES
+	done
+
+	vmkdir usr/share/caepcm/sfp
+
+	pushd ../data/sfp
+
+	for _cnlb_file in CnLB*
+	do
+		vinstall ${_cnlb_file} 644 usr/share/caepcm/sfp
+	done
+
+	popd
+
+	vmkdir usr/share/ncapfilterr
+	vinstall ThLB_37A.BIN 644 usr/share/ncapfilterr
+
+	popd
+
+	vmkdir usr/lib/udev/rules.d
+	vinstall ${_driver_dir}/rules/80-usb-ncapstatusui2l.rules 644 usr/lib/udev/rules.d
+	
+	vmkdir usr/share/cups/usb
+	vinstall ${_driver_dir}/rules/canon-sfp-printerr.usb-quirks 644 usr/share/cups/usb
+
+	vmkdir usr/share/applications
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop 644 usr/share/applications
+
+	vmkdir usr/share/icons/hicolor/128x128/apps
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vlicense ../linux-UFRIILT-drv-v500-uken/Documents/LICENSE-EN.txt LICENSE
+
+	vlicense ${_common_dir}/cngplp/LICENSE.canon.txt LICENSE.cngplp
+	vlicense ${_driver_dir}/StatusMonitor/LICENSE.canon.txt LICENSE.statusmonitor
+	vlicense ${_driver_dir}/cpca/cnpklib/LICENSE.canon.txt LICENSE.cpca.cnpklib
+
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/README-ufr2lt-5.0xUK.html
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/UsersGuide-ufr2lt-UK.html
+
+	vdoc ${_common_dir}/README README.common
+	vdoc ${_common_dir}/cngplp/README README.cngplp.common
+	vdoc ${_common_dir}/cnjbig/README README.cnjbig
+	vdoc ${_common_dir}/rasterfilter/README README.rasterfilter
+
+	vdoc ${_driver_dir}/README README.driver
+	vdoc ${_driver_dir}/StatusMonitor/README README.statusmonitor
+	vdoc ${_driver_dir}/cngplp/README README.cngplp.driver
+	vdoc ${_driver_dir}/cngplp/files/README README.cngplp.files
+	vdoc ${_driver_dir}/cpca/README README.cpca
+	vdoc ${_driver_dir}/ppd/README README.ppd
+
+	vdoc $FILESDIR/README.voidlinux
+}

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

* Re: [PR PATCH] [Updated] New package: cndrvcups-lt-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (2 preceding siblings ...)
  2021-06-15 16:17 ` [PR PATCH] [Updated] " baal-zebub
@ 2021-06-15 16:51 ` baal-zebub
  2021-06-15 17:09 ` [PR PATCH] [Updated] New package: cnrdrvcups-sfp-5.00 baal-zebub
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-15 16:51 UTC (permalink / raw)
  To: ml

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

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

https://github.com/baal-zebub/void-packages cndrvcups-lt
https://github.com/void-linux/void-packages/pull/31451

New package: cndrvcups-lt-5.00
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From f042531a8303870a194379d27dc273e8dc57415d Mon Sep 17 00:00:00 2001
From: Kamil Smardzewski <roderyk197@gmail.com>
Date: Sat, 12 Jun 2021 18:21:08 +0200
Subject: [PATCH] New package: cnrdrvcups-sfp-5.00

---
 common/shlibs                                 |  25 +++
 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux |   5 +
 srcpkgs/cnrdrvcups-sfp/template               | 185 ++++++++++++++++++
 3 files changed, 215 insertions(+)
 create mode 100644 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
 create mode 100644 srcpkgs/cnrdrvcups-sfp/template

diff --git a/common/shlibs b/common/shlibs
index 179fe27443be..f74bfb441a36 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4012,3 +4012,28 @@ libbasu.so.0 basu-0.2.0_1
 libXcomp.so.3 nx-libs-3.5.99.24_1
 libXcompshad.so.3 nx-libs-3.5.99.24_1
 libNX_X11.so.6 nx-libs-3.5.99.24_1
+libcaio_usb_cdcr.so.1 cnrdrvcups-sfp-5.00_1
+libccpd_utilr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_ncapcaior.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_stdoutr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbmlportr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_websrvr.so.1 cnrdrvcups-sfp-5.00_1
+libCUPS_Communicatorr.so.1 cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_commonr.so.1 cnrdrvcups-sfp-5.00_1
+libinfo_analyzer.so.1 cnrdrvcups-sfp-5.00_1
+libinfor.so.1 cnrdrvcups-sfp-5.00_1
+libColorGearC.so.2 cnrdrvcups-sfp-5.00_1
+libColorGearCsfp.so.2 cnrdrvcups-sfp-5.00_1
+libcaepcmsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_slimsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanonncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnncapcmr.so.1 cnrdrvcups-sfp-5.00_1
+libncapfilterr.so.1 cnrdrvcups-sfp-5.00_1
+libuictlncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnaccm.so.1 cnrdrvcups-sfp-5.00_1
+libcaiowrapsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcnlbcmr.so.1 cnrdrvcups-sfp-5.00_1
diff --git a/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
new file mode 100644
index 000000000000..54efb628f9e2
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
@@ -0,0 +1,5 @@
+If output of 'lsusb | grep "04a9:27b7"' returns a device, then it is recommended
+to reload udev rules after installation, as the package installs a new rule for
+this device, e.g.:
+
+	# udevadm control --reload-rules
diff --git a/srcpkgs/cnrdrvcups-sfp/template b/srcpkgs/cnrdrvcups-sfp/template
new file mode 100644
index 000000000000..9f23c771bb0c
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/template
@@ -0,0 +1,185 @@
+# Template file for 'cnrdrvcups-sfp'
+pkgname=cnrdrvcups-sfp
+version=5.00
+revision=1
+archs="i686 x86_64"
+create_wrksrc=yes
+build_wrksrc=source
+_common_dir=cnrdrvcups-common-${version}
+_driver_dir=${pkgname}-${version}
+hostmakedepends="autoconf automake glib-devel gettext libtool libxml2-devel pkg-config"
+makedepends="atk-devel cups-devel gtk+-devel libglade-devel"
+depends="colord cups cups-filters eudev libglade libusb"
+short_desc="UFRII LT printer driver for Canon LBP printers"
+maintainer="Kamil Smardzewski <roderyk197@gmail.com>"
+license="custom:canon,GPL-2.0-or-later,MIT"
+homepage="https://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp6030w.html?type=drivers&language=en&os=linux%20(64-bit)"
+distfiles="https://gdlp01.c-wss.com/gds/0/0100005950/10/linux-UFRIILT-drv-v500-uken-18.tar.gz"
+checksum="46888140016bc1096694a0fd6fd3f6ad393970b8153756373a382dc82390f259"
+repository="nonfree"
+nopie=yes
+
+case $XBPS_TARGET_MACHINE in
+	x86_64)
+		_bits=64
+		;;
+	i686)
+		_bits=32
+		;;
+esac
+
+CFLAGS="-fcommon"
+
+post_extract() {
+	mkdir ${build_wrksrc}
+	bsdtar xvf linux-UFRIILT-drv-v500-uken/Sources/${pkgname}-${version}-1.tar.gz -C ${build_wrksrc}
+}
+
+pre_configure() {
+	vsed -e '2a export LIBS="-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0"' -i "${_common_dir}/cngplp/autogen.sh"
+	vsed -e '2a export LIBS="-latk-1.0 -lgobject-2.0 -lglib-2.0 -lgdk_pixbuf-2.0 -lcups"' -i "${_driver_dir}/StatusMonitor/autogen.sh"
+
+	for subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${subdir} && autoreconf -i )
+	done
+
+	for subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${subdir} && autoreconf -i )
+	done
+}
+
+do_configure() {
+	local _buftool_abs_path="${wrksrc}/${build_wrksrc}/${_common_dir}/buftool"
+
+	( cd ${_common_dir}/buftool && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin --disable-shared --enable-static )
+	( cd ${_common_dir}/cngplp && ./autogen.sh ${configure_args} COMMON_SUFFIX=2l )
+	( cd ${_common_dir}/cnjbig && ./autogen.sh ${configure_args} )
+	( cd ${_common_dir}/rasterfilter && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} )
+
+	( cd ${_driver_dir}/ppd && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/cngplp && ./autogen.sh ${configure_args} --prefix=/usr )
+	( cd ${_driver_dir}/cngplp/files && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/StatusMonitor && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+	( cd ${_driver_dir}/cpca && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+}
+
+do_build() {
+	( cd ${_common_dir} && make all )
+	( cd ${_driver_dir} && make all )
+}
+
+pre_install() {
+	cd "lib/libs${_bits}"
+
+	rm "libcanon_slimsfp.so" "libcanon_slimsfp.so.1"
+	rm "libinfor.so" "libinfor.so.1"
+
+	ln -s libcaepcmsfp.so.1.0 libcaepcmsfp.so.1
+	ln -s libcanon_slimsfp.so.1.0.0 libcanon_slimsfp.so.1
+	ln -s libcanon_slimsfp.so.1.0.0 libcanon_slimsfp.so
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so.2
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so
+
+	ln -s libccpd_utilr.so.1.0.0 libccpd_utilr.so
+	ln -s libccpd_utilr.so.1.0.0 libccpd_utilr.so.1
+	ln -s libcomm_stdoutr.so.1.0.0 libcomm_stdoutr.so
+	ln -s libcomm_stdoutr.so.1.0.0 libcomm_stdoutr.so.1
+	ln -s libcomm_usbmlportr.so.1.0.0 libcomm_usbmlportr.so
+	ln -s libcomm_usbmlportr.so.1.0.0 libcomm_usbmlportr.so.1
+	ln -s libcomm_usbsockr.so.1.0.0 libcomm_usbsockr.so
+	ln -s libcomm_usbsockr.so.1.0.0 libcomm_usbsockr.so.1
+	ln -s libcomm_websrvr.so.1.0.0 ibcomm_websrvr.so
+	ln -s libcomm_websrvr.so.1.0.0 ibcomm_websrvr.so.1
+	ln -s libcomm_ncapcaior.so.1.0.0 libcomm_ncapcaior.so
+	ln -s libcomm_ncapcaior.so.1.0.0 libcomm_ncapcaior.so.1
+	ln -s libcaio_usb_cdcr.so.1.0.0 libcaio_usb_cdcr.so
+	ln -s libcaio_usb_cdcr.so.1.0.0 libcaio_usb_cdcr.so.1
+
+	ln -s libCUPS_Communicatorr.so.1.0.0 libCUPS_Communicatorr.so
+	ln -s libCUPS_Communicatorr.so.1.0.0 libCUPS_Communicatorr.so.1
+	ln -s libCommIsolationr.so.1.0.0 libCommIsolationr.so
+	ln -s libCommIsolationr.so.1.0.0 libCommIsolationr.so.1
+	ln -s libcanon_commonr.so.1.0.0 libcanon_commonr.so
+	ln -s libcanon_commonr.so.1.0.0 libcanon_commonr.so.1
+	ln -s libinfor.so.1.0.0 libinfor.so
+	ln -s libinfor.so.1.0.0 libinfor.so.1
+	ln -s libinfo_analyzer.so.1.0.0 libinfo_analyzer.so
+	ln -s libinfo_analyzer.so.1.0.0 libinfo_analyzer.so.1
+}
+
+do_install() {
+	for subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${subdir} && make install DESTDIR=${DESTDIR} COMMON_SUFFIX=2 )
+	done
+
+	for subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${subdir} && make install DESTDIR=${DESTDIR} )
+	done
+
+	pushd "lib/libs${_bits}"
+
+	vbin cnsetuputil2l
+	vcopy lib*.so* usr/lib
+
+
+	for _locale in "de" "es" "fr" "it" "ja" "ko" "zh_CN" "zh_TW"
+	do
+		vmkdir usr/share/locale/${_locale}/LC_MESSAGES
+		vinstall ${_locale}/LC_MESSAGES/cnsetuputil2l.mo 644 usr/share/locale/${_locale}/LC_MESSAGES
+	done
+
+	vmkdir usr/share/caepcm/sfp
+
+	pushd ../data/sfp
+
+	for _cnlb_file in CnLB*
+	do
+		vinstall ${_cnlb_file} 644 usr/share/caepcm/sfp
+	done
+
+	popd
+
+	vmkdir usr/share/ncapfilterr
+	vinstall ThLB_37A.BIN 644 usr/share/ncapfilterr
+
+	popd
+
+	vmkdir usr/lib/udev/rules.d
+	vinstall ${_driver_dir}/rules/80-usb-ncapstatusui2l.rules 644 usr/lib/udev/rules.d
+	
+	vmkdir usr/share/cups/usb
+	vinstall ${_driver_dir}/rules/canon-sfp-printerr.usb-quirks 644 usr/share/cups/usb
+
+	vmkdir usr/share/applications
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop 644 usr/share/applications
+
+	vmkdir usr/share/icons/hicolor/128x128/apps
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vlicense ../linux-UFRIILT-drv-v500-uken/Documents/LICENSE-EN.txt LICENSE
+
+	vlicense ${_common_dir}/cngplp/LICENSE.canon.txt LICENSE.cngplp
+	vlicense ${_driver_dir}/StatusMonitor/LICENSE.canon.txt LICENSE.statusmonitor
+	vlicense ${_driver_dir}/cpca/cnpklib/LICENSE.canon.txt LICENSE.cpca.cnpklib
+
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/README-ufr2lt-5.0xUK.html
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/UsersGuide-ufr2lt-UK.html
+
+	vdoc ${_common_dir}/README README.common
+	vdoc ${_common_dir}/cngplp/README README.cngplp.common
+	vdoc ${_common_dir}/cnjbig/README README.cnjbig
+	vdoc ${_common_dir}/rasterfilter/README README.rasterfilter
+
+	vdoc ${_driver_dir}/README README.driver
+	vdoc ${_driver_dir}/StatusMonitor/README README.statusmonitor
+	vdoc ${_driver_dir}/cngplp/README README.cngplp.driver
+	vdoc ${_driver_dir}/cngplp/files/README README.cngplp.files
+	vdoc ${_driver_dir}/cpca/README README.cpca
+	vdoc ${_driver_dir}/ppd/README README.ppd
+
+	vdoc $FILESDIR/README.voidlinux
+}

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

* Re: [PR PATCH] [Updated] New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (3 preceding siblings ...)
  2021-06-15 16:51 ` baal-zebub
@ 2021-06-15 17:09 ` baal-zebub
  2021-06-15 21:53 ` baal-zebub
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-15 17:09 UTC (permalink / raw)
  To: ml

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

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

https://github.com/baal-zebub/void-packages cndrvcups-lt
https://github.com/void-linux/void-packages/pull/31451

New package: cnrdrvcups-sfp-5.00
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 3e8dd3a7cb2cb27ef754b9ca671217d8a93d2441 Mon Sep 17 00:00:00 2001
From: Kamil Smardzewski <roderyk197@gmail.com>
Date: Sat, 12 Jun 2021 18:21:08 +0200
Subject: [PATCH] New package: cnrdrvcups-sfp-5.00

---
 common/shlibs                                 |  25 +++
 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux |   5 +
 srcpkgs/cnrdrvcups-sfp/template               | 190 ++++++++++++++++++
 3 files changed, 220 insertions(+)
 create mode 100644 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
 create mode 100644 srcpkgs/cnrdrvcups-sfp/template

diff --git a/common/shlibs b/common/shlibs
index 179fe27443be..f74bfb441a36 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4012,3 +4012,28 @@ libbasu.so.0 basu-0.2.0_1
 libXcomp.so.3 nx-libs-3.5.99.24_1
 libXcompshad.so.3 nx-libs-3.5.99.24_1
 libNX_X11.so.6 nx-libs-3.5.99.24_1
+libcaio_usb_cdcr.so.1 cnrdrvcups-sfp-5.00_1
+libccpd_utilr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_ncapcaior.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_stdoutr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbmlportr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_websrvr.so.1 cnrdrvcups-sfp-5.00_1
+libCUPS_Communicatorr.so.1 cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_commonr.so.1 cnrdrvcups-sfp-5.00_1
+libinfo_analyzer.so.1 cnrdrvcups-sfp-5.00_1
+libinfor.so.1 cnrdrvcups-sfp-5.00_1
+libColorGearC.so.2 cnrdrvcups-sfp-5.00_1
+libColorGearCsfp.so.2 cnrdrvcups-sfp-5.00_1
+libcaepcmsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_slimsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanonncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnncapcmr.so.1 cnrdrvcups-sfp-5.00_1
+libncapfilterr.so.1 cnrdrvcups-sfp-5.00_1
+libuictlncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnaccm.so.1 cnrdrvcups-sfp-5.00_1
+libcaiowrapsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcnlbcmr.so.1 cnrdrvcups-sfp-5.00_1
diff --git a/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
new file mode 100644
index 000000000000..54efb628f9e2
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
@@ -0,0 +1,5 @@
+If output of 'lsusb | grep "04a9:27b7"' returns a device, then it is recommended
+to reload udev rules after installation, as the package installs a new rule for
+this device, e.g.:
+
+	# udevadm control --reload-rules
diff --git a/srcpkgs/cnrdrvcups-sfp/template b/srcpkgs/cnrdrvcups-sfp/template
new file mode 100644
index 000000000000..e25bda14d680
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/template
@@ -0,0 +1,190 @@
+# Template file for 'cnrdrvcups-sfp'
+pkgname=cnrdrvcups-sfp
+version=5.00
+revision=1
+archs="i686 x86_64"
+create_wrksrc=yes
+build_wrksrc=source
+_common_dir=cnrdrvcups-common-${version}
+_driver_dir=${pkgname}-${version}
+hostmakedepends="autoconf automake glib-devel gettext libtool libxml2-devel pkg-config"
+makedepends="atk-devel cups-devel gtk+-devel libglade-devel"
+depends="colord cups cups-filters eudev libglade libusb"
+short_desc="UFRII LT printer driver for Canon LBP printers"
+maintainer="Kamil Smardzewski <roderyk197@gmail.com>"
+license="custom:canon,GPL-2.0-or-later,MIT"
+homepage="https://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp6030w.html?type=drivers&language=en&os=linux%20(64-bit)"
+distfiles="https://gdlp01.c-wss.com/gds/0/0100005950/10/linux-UFRIILT-drv-v500-uken-18.tar.gz"
+checksum="46888140016bc1096694a0fd6fd3f6ad393970b8153756373a382dc82390f259"
+repository="nonfree"
+nopie=yes
+
+case $XBPS_TARGET_MACHINE in
+	x86_64)
+		_bits=64
+		;;
+	i686)
+		_bits=32
+		;;
+esac
+
+CFLAGS="-fcommon"
+
+post_extract() {
+	mkdir ${build_wrksrc}
+	bsdtar xvf linux-UFRIILT-drv-v500-uken/Sources/${pkgname}-${version}-1.tar.gz -C ${build_wrksrc}
+}
+
+pre_configure() {
+	vsed -e '2a export LIBS="-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0"' -i "${_common_dir}/cngplp/autogen.sh"
+	vsed -e '2a export LIBS="-latk-1.0 -lgobject-2.0 -lglib-2.0 -lgdk_pixbuf-2.0 -lcups"' -i "${_driver_dir}/StatusMonitor/autogen.sh"
+
+	for subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${subdir} && autoreconf -i )
+	done
+
+	for subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${subdir} && autoreconf -i )
+	done
+}
+
+do_configure() {
+	local _buftool_abs_path="${wrksrc}/${build_wrksrc}/${_common_dir}/buftool"
+
+	( cd ${_common_dir}/buftool && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin --disable-shared --enable-static )
+	( cd ${_common_dir}/cngplp && ./autogen.sh ${configure_args} COMMON_SUFFIX=2l )
+	( cd ${_common_dir}/cnjbig && ./autogen.sh ${configure_args} )
+	( cd ${_common_dir}/rasterfilter && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} )
+
+	( cd ${_driver_dir}/ppd && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/cngplp && ./autogen.sh ${configure_args} --prefix=/usr )
+	( cd ${_driver_dir}/cngplp/files && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/StatusMonitor && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+	( cd ${_driver_dir}/cpca && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+}
+
+do_build() {
+	( cd ${_common_dir} && make all )
+	( cd ${_driver_dir} && make all )
+}
+
+pre_install() {
+	pushd "lib/libs${_bits}"
+
+	rm "libcanon_slimsfp.so" "libcanon_slimsfp.so.1"
+	rm "libinfor.so" "libinfor.so.1"
+
+	ln -s libcaepcmsfp.so.1.0 libcaepcmsfp.so.1
+	ln -s libcanon_slimsfp.so.1.0.0 libcanon_slimsfp.so.1
+	ln -s libcanon_slimsfp.so.1.0.0 libcanon_slimsfp.so
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so.2
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so
+
+	ln -s libccpd_utilr.so.1.0.0 libccpd_utilr.so
+	ln -s libccpd_utilr.so.1.0.0 libccpd_utilr.so.1
+	ln -s libcomm_stdoutr.so.1.0.0 libcomm_stdoutr.so
+	ln -s libcomm_stdoutr.so.1.0.0 libcomm_stdoutr.so.1
+	ln -s libcomm_usbmlportr.so.1.0.0 libcomm_usbmlportr.so
+	ln -s libcomm_usbmlportr.so.1.0.0 libcomm_usbmlportr.so.1
+	ln -s libcomm_usbsockr.so.1.0.0 libcomm_usbsockr.so
+	ln -s libcomm_usbsockr.so.1.0.0 libcomm_usbsockr.so.1
+	ln -s libcomm_websrvr.so.1.0.0 ibcomm_websrvr.so
+	ln -s libcomm_websrvr.so.1.0.0 ibcomm_websrvr.so.1
+	ln -s libcomm_ncapcaior.so.1.0.0 libcomm_ncapcaior.so
+	ln -s libcomm_ncapcaior.so.1.0.0 libcomm_ncapcaior.so.1
+	ln -s libcaio_usb_cdcr.so.1.0.0 libcaio_usb_cdcr.so
+	ln -s libcaio_usb_cdcr.so.1.0.0 libcaio_usb_cdcr.so.1
+
+	ln -s libCUPS_Communicatorr.so.1.0.0 libCUPS_Communicatorr.so
+	ln -s libCUPS_Communicatorr.so.1.0.0 libCUPS_Communicatorr.so.1
+	ln -s libCommIsolationr.so.1.0.0 libCommIsolationr.so
+	ln -s libCommIsolationr.so.1.0.0 libCommIsolationr.so.1
+	ln -s libcanon_commonr.so.1.0.0 libcanon_commonr.so
+	ln -s libcanon_commonr.so.1.0.0 libcanon_commonr.so.1
+	ln -s libinfor.so.1.0.0 libinfor.so
+	ln -s libinfor.so.1.0.0 libinfor.so.1
+	ln -s libinfo_analyzer.so.1.0.0 libinfo_analyzer.so
+	ln -s libinfo_analyzer.so.1.0.0 libinfo_analyzer.so.1
+
+	popd
+
+	vsed -e 's/cnsetuputil2l\/images\/128x128/icons\/hicolor\/128x128\/apps/' -i cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop
+	vsed -e 's/Application;Utility/Utility/' -i cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop
+}
+
+do_install() {
+	for subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${subdir} && make install DESTDIR=${DESTDIR} COMMON_SUFFIX=2 )
+	done
+
+	for subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${subdir} && make install DESTDIR=${DESTDIR} )
+	done
+
+	pushd "lib/libs${_bits}"
+
+	vbin cnsetuputil2l
+	vcopy lib*.so* usr/lib
+
+
+	for _locale in "de" "es" "fr" "it" "ja" "ko" "zh_CN" "zh_TW"
+	do
+		vmkdir usr/share/locale/${_locale}/LC_MESSAGES
+		vinstall ${_locale}/LC_MESSAGES/cnsetuputil2l.mo 644 usr/share/locale/${_locale}/LC_MESSAGES
+	done
+
+	vmkdir usr/share/caepcm/sfp
+
+	pushd ../data/sfp
+
+	for _cnlb_file in CnLB*
+	do
+		vinstall ${_cnlb_file} 644 usr/share/caepcm/sfp
+	done
+
+	popd
+
+	vmkdir usr/share/ncapfilterr
+	vinstall ThLB_37A.BIN 644 usr/share/ncapfilterr
+
+	popd
+
+	vmkdir usr/lib/udev/rules.d
+	vinstall ${_driver_dir}/rules/80-usb-ncapstatusui2l.rules 644 usr/lib/udev/rules.d
+
+	vmkdir usr/share/cups/usb
+	vinstall ${_driver_dir}/rules/canon-sfp-printerr.usb-quirks 644 usr/share/cups/usb
+
+	vmkdir usr/share/applications
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop 644 usr/share/applications
+
+	vmkdir usr/share/icons/hicolor/128x128/apps
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vlicense ../linux-UFRIILT-drv-v500-uken/Documents/LICENSE-EN.txt LICENSE
+
+	vlicense ${_common_dir}/cngplp/LICENSE.canon.txt LICENSE.cngplp
+	vlicense ${_driver_dir}/StatusMonitor/LICENSE.canon.txt LICENSE.statusmonitor
+	vlicense ${_driver_dir}/cpca/cnpklib/LICENSE.canon.txt LICENSE.cpca.cnpklib
+
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/README-ufr2lt-5.0xUK.html
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/UsersGuide-ufr2lt-UK.html
+
+	vdoc ${_common_dir}/README README.common
+	vdoc ${_common_dir}/cngplp/README README.cngplp.common
+	vdoc ${_common_dir}/cnjbig/README README.cnjbig
+	vdoc ${_common_dir}/rasterfilter/README README.rasterfilter
+
+	vdoc ${_driver_dir}/README README.driver
+	vdoc ${_driver_dir}/StatusMonitor/README README.statusmonitor
+	vdoc ${_driver_dir}/cngplp/README README.cngplp.driver
+	vdoc ${_driver_dir}/cngplp/files/README README.cngplp.files
+	vdoc ${_driver_dir}/cpca/README README.cpca
+	vdoc ${_driver_dir}/ppd/README README.ppd
+
+	vdoc $FILESDIR/README.voidlinux
+}

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

* Re: [PR PATCH] [Updated] New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (4 preceding siblings ...)
  2021-06-15 17:09 ` [PR PATCH] [Updated] New package: cnrdrvcups-sfp-5.00 baal-zebub
@ 2021-06-15 21:53 ` baal-zebub
  2021-06-15 21:53 ` baal-zebub
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-15 21:53 UTC (permalink / raw)
  To: ml

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

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

https://github.com/baal-zebub/void-packages cndrvcups-lt
https://github.com/void-linux/void-packages/pull/31451

New package: cnrdrvcups-sfp-5.00
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From ac2079e8a35b1b0b753596e14fe262cee8815927 Mon Sep 17 00:00:00 2001
From: Kamil Smardzewski <roderyk197@gmail.com>
Date: Sat, 12 Jun 2021 18:21:08 +0200
Subject: [PATCH] New package: cnrdrvcups-sfp-5.00

---
 common/shlibs                                 |  25 ++
 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux |   5 +
 srcpkgs/cnrdrvcups-sfp/template               | 219 ++++++++++++++++++
 3 files changed, 249 insertions(+)
 create mode 100644 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
 create mode 100644 srcpkgs/cnrdrvcups-sfp/template

diff --git a/common/shlibs b/common/shlibs
index 179fe27443be..f74bfb441a36 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4012,3 +4012,28 @@ libbasu.so.0 basu-0.2.0_1
 libXcomp.so.3 nx-libs-3.5.99.24_1
 libXcompshad.so.3 nx-libs-3.5.99.24_1
 libNX_X11.so.6 nx-libs-3.5.99.24_1
+libcaio_usb_cdcr.so.1 cnrdrvcups-sfp-5.00_1
+libccpd_utilr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_ncapcaior.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_stdoutr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbmlportr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_websrvr.so.1 cnrdrvcups-sfp-5.00_1
+libCUPS_Communicatorr.so.1 cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_commonr.so.1 cnrdrvcups-sfp-5.00_1
+libinfo_analyzer.so.1 cnrdrvcups-sfp-5.00_1
+libinfor.so.1 cnrdrvcups-sfp-5.00_1
+libColorGearC.so.2 cnrdrvcups-sfp-5.00_1
+libColorGearCsfp.so.2 cnrdrvcups-sfp-5.00_1
+libcaepcmsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_slimsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanonncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnncapcmr.so.1 cnrdrvcups-sfp-5.00_1
+libncapfilterr.so.1 cnrdrvcups-sfp-5.00_1
+libuictlncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnaccm.so.1 cnrdrvcups-sfp-5.00_1
+libcaiowrapsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcnlbcmr.so.1 cnrdrvcups-sfp-5.00_1
diff --git a/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
new file mode 100644
index 000000000000..54efb628f9e2
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
@@ -0,0 +1,5 @@
+If output of 'lsusb | grep "04a9:27b7"' returns a device, then it is recommended
+to reload udev rules after installation, as the package installs a new rule for
+this device, e.g.:
+
+	# udevadm control --reload-rules
diff --git a/srcpkgs/cnrdrvcups-sfp/template b/srcpkgs/cnrdrvcups-sfp/template
new file mode 100644
index 000000000000..b587ed172210
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/template
@@ -0,0 +1,219 @@
+# Template file for 'cnrdrvcups-sfp'
+pkgname=cnrdrvcups-sfp
+version=5.00
+revision=1
+archs="i686 x86_64"
+create_wrksrc=yes
+build_wrksrc=source
+_common_dir=cnrdrvcups-common-${version}
+_driver_dir=${pkgname}-${version}
+hostmakedepends="autoconf automake glib-devel gettext libtool libxml2-devel pkg-config"
+makedepends="atk-devel cups-devel gtk+-devel libglade-devel"
+depends="colord cups cups-filters eudev libglade libusb"
+short_desc="UFRII LT printer driver for Canon LBP printers"
+maintainer="Kamil Smardzewski <roderyk197@gmail.com>"
+license="custom:canon,GPL-2.0-or-later,MIT"
+homepage="https://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp6030w.html"
+distfiles="https://gdlp01.c-wss.com/gds/0/0100005950/10/linux-UFRIILT-drv-v500-uken-18.tar.gz"
+checksum="46888140016bc1096694a0fd6fd3f6ad393970b8153756373a382dc82390f259"
+repository="nonfree"
+nopie=yes
+
+case $XBPS_TARGET_MACHINE in
+	x86_64)
+		_bits=64
+		;;
+	i686)
+		_bits=32
+		;;
+esac
+
+CFLAGS="-fcommon"
+
+post_extract() {
+	mkdir ${build_wrksrc}
+	bsdtar xvf linux-UFRIILT-drv-v500-uken/Sources/${pkgname}-${version}-1.tar.gz -C ${build_wrksrc}
+}
+
+pre_configure() {
+	vsed -e '2a export LIBS="-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0"' -i "${_common_dir}/cngplp/autogen.sh"
+	vsed -e '2a export LIBS="-latk-1.0 -lgobject-2.0 -lglib-2.0 -lgdk_pixbuf-2.0 -lcups"' -i "${_driver_dir}/StatusMonitor/autogen.sh"
+
+	for _subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${_subdir} && autoreconf -i )
+	done
+
+	for _subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${_subdir} && autoreconf -i )
+	done
+}
+
+do_configure() {
+	local _buftool_abs_path="${wrksrc}/${build_wrksrc}/${_common_dir}/buftool"
+
+	( cd ${_common_dir}/buftool && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin --disable-shared --enable-static )
+	( cd ${_common_dir}/cngplp && ./autogen.sh ${configure_args} COMMON_SUFFIX=2l )
+	( cd ${_common_dir}/cnjbig && ./autogen.sh ${configure_args} )
+	( cd ${_common_dir}/rasterfilter && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} )
+
+	( cd ${_driver_dir}/ppd && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/cngplp && ./autogen.sh ${configure_args} --prefix=/usr )
+	( cd ${_driver_dir}/cngplp/files && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/StatusMonitor && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+	( cd ${_driver_dir}/cpca && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+}
+
+do_build() {
+	( cd ${_common_dir} && make )
+	( cd ${_driver_dir} && make )
+}
+
+pre_install() {
+	pushd "lib/libs${_bits}"
+
+	rm "libcanon_slimsfp.so" "libcanon_slimsfp.so.1"
+	rm "libinfor.so" "libinfor.so.1"
+
+	for _so_file in \
+		libcanon_slimsfp.so.1.0.0 \
+		libccpd_utilr.so.1.0.0 \
+		libcomm_stdoutr.so.1.0.0 \
+		libcomm_usbmlportr.so.1.0.0 \
+		libcomm_usbsockr.so.1.0.0 \
+		libcomm_websrvr.so.1.0.0 \
+		libcomm_ncapcaior.so.1.0.0 \
+		libcaio_usb_cdcr.so.1.0.0 \
+		libCUPS_Communicatorr.so.1.0.0 \
+		libCommIsolationr.so.1.0.0 \
+		libcanon_commonr.so.1.0.0 \
+		libinfor.so.1.0.0 \
+		libinfo_analyzer.so.1.0.0 \
+		libcanonncapr.so.1.0.0 \
+		libcnncapcmr.so.1.0.0 \
+		libncapfilterr.so.1.0.0
+	do
+		ln -s ${_so_file} ${_so_file%.1.0.0}
+		ln -s ${_so_file} ${_so_file%.0.0}
+	done
+
+	ln -s libcaepcmsfp.so.1.0 libcaepcmsfp.so.1
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so.2
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so
+
+	popd
+
+	vsed -e 's/cnsetuputil2l\/images\/128x128/icons\/hicolor\/128x128\/apps/' -i cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop
+	vsed -e 's/Application;Utility/Utility/' -i cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop
+}
+
+do_install() {
+	for _subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${_subdir} && make install DESTDIR=${DESTDIR} COMMON_SUFFIX=2 )
+	done
+
+	for _subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${_subdir} && make install DESTDIR=${DESTDIR} )
+	done
+
+	pushd "lib/libs${_bits}"
+
+	vbin cnpkmodulencapr
+	vbin cnrsdrvsfp
+	vbin cnsetuputil2l
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Bidi
+	for _so_file in \
+		libcaio_usb_cdcr.so \
+		libccpd_utilr.so \
+		libcomm_ncapcaior.so \
+		libcomm_stdoutr.so \
+		libcomm_usbmlportr.so \
+		libcomm_usbsockr.so \
+		libcomm_websrvr.so
+	do
+		vcopy ${_so_file}* usr/lib/Canon/CUPS_SFPR/Bidi
+	done
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Bins
+	vinstall commandfilefilterr 755 usr/lib/Canon/CUPS_SFPR/Bins
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Libs
+	for _so_file in \
+		libCUPS_Communicatorr.so \
+		libCommIsolationr.so \
+		libcanon_commonr.so \
+		libinfo_analyzer.so \
+		libinfor.so
+	do
+		vcopy ${_so_file}* usr/lib/Canon/CUPS_SFPR/Libs
+	done
+
+	for _so_file in \
+		libColorGearCsfp.so \
+		libcaepcmsfp.so \
+		libcanon_slimsfp.so \
+		libcanonncapr.so \
+		libcnncapcmr.so \
+		libncapfilterr.so
+	do
+		vcopy ${_so_file}* usr/lib
+	done
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Utilities
+	vinstall pksmncapr 4755 usr/lib/Canon/CUPS_SFPR/Utilities
+
+	for _locale in "de" "es" "fr" "it" "ja" "ko" "zh_CN" "zh_TW"
+	do
+		vmkdir usr/share/locale/${_locale}/LC_MESSAGES
+		vinstall ${_locale}/LC_MESSAGES/cnsetuputil2l.mo 644 usr/share/locale/${_locale}/LC_MESSAGES
+	done
+
+	vmkdir usr/share/caepcm/sfp
+	vcopy ../data/sfp/* usr/share/caepcm/sfp
+
+	vmkdir usr/share/ncapfilterr
+	vinstall ThLB_37A.BIN 644 usr/share/ncapfilterr
+
+	popd
+
+	vmkdir usr/lib/udev/rules.d
+	vinstall ${_driver_dir}/rules/80-usb-ncapstatusui2l.rules 644 usr/lib/udev/rules.d
+
+	vmkdir usr/share/cups/usb
+	vinstall ${_driver_dir}/rules/canon-sfp-printerr.usb-quirks 644 usr/share/cups/usb
+
+	vcopy ${_driver_dir}/StatusMonitor/Message usr/lib/Canon/CUPS_SFPR/Utilities
+
+	vmkdir usr/share/applications
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop 644 usr/share/applications
+
+	vmkdir usr/share/icons/hicolor/128x128/apps
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vlicense ../linux-UFRIILT-drv-v500-uken/Documents/LICENSE-EN.txt LICENSE
+
+	vlicense ${_common_dir}/cngplp/LICENSE.canon.txt LICENSE.cngplp
+	vlicense ${_driver_dir}/StatusMonitor/LICENSE.canon.txt LICENSE.statusmonitor
+	vlicense ${_driver_dir}/cpca/cnpklib/LICENSE.canon.txt LICENSE.cpca.cnpklib
+
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/README-ufr2lt-5.0xUK.html
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/UsersGuide-ufr2lt-UK.html
+
+	vdoc ${_common_dir}/README README.common
+	vdoc ${_common_dir}/cngplp/README README.cngplp.common
+	vdoc ${_common_dir}/cnjbig/README README.cnjbig
+	vdoc ${_common_dir}/rasterfilter/README README.rasterfilter
+
+	vdoc ${_driver_dir}/README README.driver
+	vdoc ${_driver_dir}/StatusMonitor/README README.statusmonitor
+	vdoc ${_driver_dir}/cngplp/README README.cngplp.driver
+	vdoc ${_driver_dir}/cngplp/files/README README.cngplp.files
+	vdoc ${_driver_dir}/cpca/README README.cpca
+	vdoc ${_driver_dir}/ppd/README README.ppd
+
+	vdoc $FILESDIR/README.voidlinux
+}

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

* Re: [PR PATCH] [Updated] New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (5 preceding siblings ...)
  2021-06-15 21:53 ` baal-zebub
@ 2021-06-15 21:53 ` baal-zebub
  2021-06-15 22:01 ` baal-zebub
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-15 21:53 UTC (permalink / raw)
  To: ml

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

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

https://github.com/baal-zebub/void-packages cndrvcups-lt
https://github.com/void-linux/void-packages/pull/31451

New package: cnrdrvcups-sfp-5.00
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 79e1fb8c18edbafaafe67ababa05cfafe7361521 Mon Sep 17 00:00:00 2001
From: Kamil Smardzewski <roderyk197@gmail.com>
Date: Sat, 12 Jun 2021 18:21:08 +0200
Subject: [PATCH] New package: cnrdrvcups-sfp-5.00

---
 common/shlibs                                 |  25 ++
 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux |   5 +
 srcpkgs/cnrdrvcups-sfp/template               | 219 ++++++++++++++++++
 3 files changed, 249 insertions(+)
 create mode 100644 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
 create mode 100644 srcpkgs/cnrdrvcups-sfp/template

diff --git a/common/shlibs b/common/shlibs
index 179fe27443be..f74bfb441a36 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4012,3 +4012,28 @@ libbasu.so.0 basu-0.2.0_1
 libXcomp.so.3 nx-libs-3.5.99.24_1
 libXcompshad.so.3 nx-libs-3.5.99.24_1
 libNX_X11.so.6 nx-libs-3.5.99.24_1
+libcaio_usb_cdcr.so.1 cnrdrvcups-sfp-5.00_1
+libccpd_utilr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_ncapcaior.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_stdoutr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbmlportr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_websrvr.so.1 cnrdrvcups-sfp-5.00_1
+libCUPS_Communicatorr.so.1 cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_commonr.so.1 cnrdrvcups-sfp-5.00_1
+libinfo_analyzer.so.1 cnrdrvcups-sfp-5.00_1
+libinfor.so.1 cnrdrvcups-sfp-5.00_1
+libColorGearC.so.2 cnrdrvcups-sfp-5.00_1
+libColorGearCsfp.so.2 cnrdrvcups-sfp-5.00_1
+libcaepcmsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_slimsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanonncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnncapcmr.so.1 cnrdrvcups-sfp-5.00_1
+libncapfilterr.so.1 cnrdrvcups-sfp-5.00_1
+libuictlncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnaccm.so.1 cnrdrvcups-sfp-5.00_1
+libcaiowrapsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcnlbcmr.so.1 cnrdrvcups-sfp-5.00_1
diff --git a/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
new file mode 100644
index 000000000000..54efb628f9e2
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
@@ -0,0 +1,5 @@
+If output of 'lsusb | grep "04a9:27b7"' returns a device, then it is recommended
+to reload udev rules after installation, as the package installs a new rule for
+this device, e.g.:
+
+	# udevadm control --reload-rules
diff --git a/srcpkgs/cnrdrvcups-sfp/template b/srcpkgs/cnrdrvcups-sfp/template
new file mode 100644
index 000000000000..b587ed172210
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/template
@@ -0,0 +1,219 @@
+# Template file for 'cnrdrvcups-sfp'
+pkgname=cnrdrvcups-sfp
+version=5.00
+revision=1
+archs="i686 x86_64"
+create_wrksrc=yes
+build_wrksrc=source
+_common_dir=cnrdrvcups-common-${version}
+_driver_dir=${pkgname}-${version}
+hostmakedepends="autoconf automake glib-devel gettext libtool libxml2-devel pkg-config"
+makedepends="atk-devel cups-devel gtk+-devel libglade-devel"
+depends="colord cups cups-filters eudev libglade libusb"
+short_desc="UFRII LT printer driver for Canon LBP printers"
+maintainer="Kamil Smardzewski <roderyk197@gmail.com>"
+license="custom:canon,GPL-2.0-or-later,MIT"
+homepage="https://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp6030w.html"
+distfiles="https://gdlp01.c-wss.com/gds/0/0100005950/10/linux-UFRIILT-drv-v500-uken-18.tar.gz"
+checksum="46888140016bc1096694a0fd6fd3f6ad393970b8153756373a382dc82390f259"
+repository="nonfree"
+nopie=yes
+
+case $XBPS_TARGET_MACHINE in
+	x86_64)
+		_bits=64
+		;;
+	i686)
+		_bits=32
+		;;
+esac
+
+CFLAGS="-fcommon"
+
+post_extract() {
+	mkdir ${build_wrksrc}
+	bsdtar xvf linux-UFRIILT-drv-v500-uken/Sources/${pkgname}-${version}-1.tar.gz -C ${build_wrksrc}
+}
+
+pre_configure() {
+	vsed -e '2a export LIBS="-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0"' -i "${_common_dir}/cngplp/autogen.sh"
+	vsed -e '2a export LIBS="-latk-1.0 -lgobject-2.0 -lglib-2.0 -lgdk_pixbuf-2.0 -lcups"' -i "${_driver_dir}/StatusMonitor/autogen.sh"
+
+	for _subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${_subdir} && autoreconf -i )
+	done
+
+	for _subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${_subdir} && autoreconf -i )
+	done
+}
+
+do_configure() {
+	local _buftool_abs_path="${wrksrc}/${build_wrksrc}/${_common_dir}/buftool"
+
+	( cd ${_common_dir}/buftool && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin --disable-shared --enable-static )
+	( cd ${_common_dir}/cngplp && ./autogen.sh ${configure_args} COMMON_SUFFIX=2l )
+	( cd ${_common_dir}/cnjbig && ./autogen.sh ${configure_args} )
+	( cd ${_common_dir}/rasterfilter && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} )
+
+	( cd ${_driver_dir}/ppd && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/cngplp && ./autogen.sh ${configure_args} --prefix=/usr )
+	( cd ${_driver_dir}/cngplp/files && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/StatusMonitor && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+	( cd ${_driver_dir}/cpca && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+}
+
+do_build() {
+	( cd ${_common_dir} && make )
+	( cd ${_driver_dir} && make )
+}
+
+pre_install() {
+	pushd "lib/libs${_bits}"
+
+	rm "libcanon_slimsfp.so" "libcanon_slimsfp.so.1"
+	rm "libinfor.so" "libinfor.so.1"
+
+	for _so_file in \
+		libcanon_slimsfp.so.1.0.0 \
+		libccpd_utilr.so.1.0.0 \
+		libcomm_stdoutr.so.1.0.0 \
+		libcomm_usbmlportr.so.1.0.0 \
+		libcomm_usbsockr.so.1.0.0 \
+		libcomm_websrvr.so.1.0.0 \
+		libcomm_ncapcaior.so.1.0.0 \
+		libcaio_usb_cdcr.so.1.0.0 \
+		libCUPS_Communicatorr.so.1.0.0 \
+		libCommIsolationr.so.1.0.0 \
+		libcanon_commonr.so.1.0.0 \
+		libinfor.so.1.0.0 \
+		libinfo_analyzer.so.1.0.0 \
+		libcanonncapr.so.1.0.0 \
+		libcnncapcmr.so.1.0.0 \
+		libncapfilterr.so.1.0.0
+	do
+		ln -s ${_so_file} ${_so_file%.1.0.0}
+		ln -s ${_so_file} ${_so_file%.0.0}
+	done
+
+	ln -s libcaepcmsfp.so.1.0 libcaepcmsfp.so.1
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so.2
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so
+
+	popd
+
+	vsed -e 's/cnsetuputil2l\/images\/128x128/icons\/hicolor\/128x128\/apps/' -i cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop
+	vsed -e 's/Application;Utility/Utility/' -i cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop
+}
+
+do_install() {
+	for _subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${_subdir} && make install DESTDIR=${DESTDIR} COMMON_SUFFIX=2 )
+	done
+
+	for _subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${_subdir} && make install DESTDIR=${DESTDIR} )
+	done
+
+	pushd "lib/libs${_bits}"
+
+	vbin cnpkmodulencapr
+	vbin cnrsdrvsfp
+	vbin cnsetuputil2l
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Bidi
+	for _so_file in \
+		libcaio_usb_cdcr.so \
+		libccpd_utilr.so \
+		libcomm_ncapcaior.so \
+		libcomm_stdoutr.so \
+		libcomm_usbmlportr.so \
+		libcomm_usbsockr.so \
+		libcomm_websrvr.so
+	do
+		vcopy ${_so_file}* usr/lib/Canon/CUPS_SFPR/Bidi
+	done
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Bins
+	vinstall commandfilefilterr 755 usr/lib/Canon/CUPS_SFPR/Bins
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Libs
+	for _so_file in \
+		libCUPS_Communicatorr.so \
+		libCommIsolationr.so \
+		libcanon_commonr.so \
+		libinfo_analyzer.so \
+		libinfor.so
+	do
+		vcopy ${_so_file}* usr/lib/Canon/CUPS_SFPR/Libs
+	done
+
+	for _so_file in \
+		libColorGearCsfp.so \
+		libcaepcmsfp.so \
+		libcanon_slimsfp.so \
+		libcanonncapr.so \
+		libcnncapcmr.so \
+		libncapfilterr.so
+	do
+		vcopy ${_so_file}* usr/lib
+	done
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Utilities
+	vinstall pksmncapr 4755 usr/lib/Canon/CUPS_SFPR/Utilities
+
+	for _locale in "de" "es" "fr" "it" "ja" "ko" "zh_CN" "zh_TW"
+	do
+		vmkdir usr/share/locale/${_locale}/LC_MESSAGES
+		vinstall ${_locale}/LC_MESSAGES/cnsetuputil2l.mo 644 usr/share/locale/${_locale}/LC_MESSAGES
+	done
+
+	vmkdir usr/share/caepcm/sfp
+	vcopy ../data/sfp/* usr/share/caepcm/sfp
+
+	vmkdir usr/share/ncapfilterr
+	vinstall ThLB_37A.BIN 644 usr/share/ncapfilterr
+
+	popd
+
+	vmkdir usr/lib/udev/rules.d
+	vinstall ${_driver_dir}/rules/80-usb-ncapstatusui2l.rules 644 usr/lib/udev/rules.d
+
+	vmkdir usr/share/cups/usb
+	vinstall ${_driver_dir}/rules/canon-sfp-printerr.usb-quirks 644 usr/share/cups/usb
+
+	vcopy ${_driver_dir}/StatusMonitor/Message usr/lib/Canon/CUPS_SFPR/Utilities
+
+	vmkdir usr/share/applications
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop 644 usr/share/applications
+
+	vmkdir usr/share/icons/hicolor/128x128/apps
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vlicense ../linux-UFRIILT-drv-v500-uken/Documents/LICENSE-EN.txt LICENSE
+
+	vlicense ${_common_dir}/cngplp/LICENSE.canon.txt LICENSE.cngplp
+	vlicense ${_driver_dir}/StatusMonitor/LICENSE.canon.txt LICENSE.statusmonitor
+	vlicense ${_driver_dir}/cpca/cnpklib/LICENSE.canon.txt LICENSE.cpca.cnpklib
+
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/README-ufr2lt-5.0xUK.html
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/UsersGuide-ufr2lt-UK.html
+
+	vdoc ${_common_dir}/README README.common
+	vdoc ${_common_dir}/cngplp/README README.cngplp.common
+	vdoc ${_common_dir}/cnjbig/README README.cnjbig
+	vdoc ${_common_dir}/rasterfilter/README README.rasterfilter
+
+	vdoc ${_driver_dir}/README README.driver
+	vdoc ${_driver_dir}/StatusMonitor/README README.statusmonitor
+	vdoc ${_driver_dir}/cngplp/README README.cngplp.driver
+	vdoc ${_driver_dir}/cngplp/files/README README.cngplp.files
+	vdoc ${_driver_dir}/cpca/README README.cpca
+	vdoc ${_driver_dir}/ppd/README README.ppd
+
+	vdoc $FILESDIR/README.voidlinux
+}

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

* Re: New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (6 preceding siblings ...)
  2021-06-15 21:53 ` baal-zebub
@ 2021-06-15 22:01 ` baal-zebub
  2021-06-16 16:11 ` [PR REVIEW] " Chocimier
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-15 22:01 UTC (permalink / raw)
  To: ml

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

New comment by baal-zebub on void-packages repository

https://github.com/void-linux/void-packages/pull/31451#issuecomment-861865326

Comment:
Finally switched to building from source, had to work on it a bit to make it build and then work after installation. Now it should be ready for review, although it's a shame that the template has gotten so much bigger.

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

* Re: [PR REVIEW] New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (7 preceding siblings ...)
  2021-06-15 22:01 ` baal-zebub
@ 2021-06-16 16:11 ` Chocimier
  2021-06-16 16:42 ` baal-zebub
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Chocimier @ 2021-06-16 16:11 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/31451#discussion_r652841505

Comment:
These are still binary, what is unfortunate, because driver seems to cross-compile otherwise. Any chance for building from source?

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

* Re: [PR REVIEW] New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (8 preceding siblings ...)
  2021-06-16 16:11 ` [PR REVIEW] " Chocimier
@ 2021-06-16 16:42 ` baal-zebub
  2021-06-16 16:44 ` baal-zebub
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-16 16:42 UTC (permalink / raw)
  To: ml

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

New review comment by baal-zebub on void-packages repository

https://github.com/void-linux/void-packages/pull/31451#discussion_r652865005

Comment:
Afraid not, although building C applications is beyond my level of expertise and I'm not entirely sure where these come from, because they are not present after extracting the source and before building.

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

* Re: [PR REVIEW] New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (9 preceding siblings ...)
  2021-06-16 16:42 ` baal-zebub
@ 2021-06-16 16:44 ` baal-zebub
  2021-06-16 22:20 ` [PR PATCH] [Updated] " baal-zebub
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-16 16:44 UTC (permalink / raw)
  To: ml

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

New review comment by baal-zebub on void-packages repository

https://github.com/void-linux/void-packages/pull/31451#discussion_r652866460

Comment:
These may be a bit messed up, some of them refer to GPL and probably aren't needed.

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

* Re: [PR PATCH] [Updated] New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (10 preceding siblings ...)
  2021-06-16 16:44 ` baal-zebub
@ 2021-06-16 22:20 ` baal-zebub
  2022-05-22  2:11 ` github-actions
  2022-06-05  2:13 ` [PR PATCH] [Closed]: " github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: baal-zebub @ 2021-06-16 22:20 UTC (permalink / raw)
  To: ml

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

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

https://github.com/baal-zebub/void-packages cndrvcups-lt
https://github.com/void-linux/void-packages/pull/31451

New package: cnrdrvcups-sfp-5.00
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 7d2a2a6cff38998a39962109668eb3e5383ce27c Mon Sep 17 00:00:00 2001
From: Kamil Smardzewski <roderyk197@gmail.com>
Date: Sat, 12 Jun 2021 18:21:08 +0200
Subject: [PATCH] New package: cnrdrvcups-sfp-5.00

---
 common/shlibs                                 |  25 +++
 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux |   5 +
 srcpkgs/cnrdrvcups-sfp/template               | 211 ++++++++++++++++++
 3 files changed, 241 insertions(+)
 create mode 100644 srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
 create mode 100644 srcpkgs/cnrdrvcups-sfp/template

diff --git a/common/shlibs b/common/shlibs
index 179fe27443be..f74bfb441a36 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4012,3 +4012,28 @@ libbasu.so.0 basu-0.2.0_1
 libXcomp.so.3 nx-libs-3.5.99.24_1
 libXcompshad.so.3 nx-libs-3.5.99.24_1
 libNX_X11.so.6 nx-libs-3.5.99.24_1
+libcaio_usb_cdcr.so.1 cnrdrvcups-sfp-5.00_1
+libccpd_utilr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_ncapcaior.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_stdoutr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbmlportr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so cnrdrvcups-sfp-5.00_1
+libcomm_usbsockr.so.1 cnrdrvcups-sfp-5.00_1
+libcomm_websrvr.so.1 cnrdrvcups-sfp-5.00_1
+libCUPS_Communicatorr.so.1 cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so cnrdrvcups-sfp-5.00_1
+libCommIsolationr.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_commonr.so.1 cnrdrvcups-sfp-5.00_1
+libinfo_analyzer.so.1 cnrdrvcups-sfp-5.00_1
+libinfor.so.1 cnrdrvcups-sfp-5.00_1
+libColorGearC.so.2 cnrdrvcups-sfp-5.00_1
+libColorGearCsfp.so.2 cnrdrvcups-sfp-5.00_1
+libcaepcmsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanon_slimsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcanonncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnncapcmr.so.1 cnrdrvcups-sfp-5.00_1
+libncapfilterr.so.1 cnrdrvcups-sfp-5.00_1
+libuictlncapr.so.1 cnrdrvcups-sfp-5.00_1
+libcnaccm.so.1 cnrdrvcups-sfp-5.00_1
+libcaiowrapsfp.so.1 cnrdrvcups-sfp-5.00_1
+libcnlbcmr.so.1 cnrdrvcups-sfp-5.00_1
diff --git a/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
new file mode 100644
index 000000000000..54efb628f9e2
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/files/README.voidlinux
@@ -0,0 +1,5 @@
+If output of 'lsusb | grep "04a9:27b7"' returns a device, then it is recommended
+to reload udev rules after installation, as the package installs a new rule for
+this device, e.g.:
+
+	# udevadm control --reload-rules
diff --git a/srcpkgs/cnrdrvcups-sfp/template b/srcpkgs/cnrdrvcups-sfp/template
new file mode 100644
index 000000000000..41a6bcebadf7
--- /dev/null
+++ b/srcpkgs/cnrdrvcups-sfp/template
@@ -0,0 +1,211 @@
+# Template file for 'cnrdrvcups-sfp'
+pkgname=cnrdrvcups-sfp
+version=5.00
+revision=1
+archs="i686 x86_64"
+create_wrksrc=yes
+build_wrksrc=source
+_common_dir=cnrdrvcups-common-${version}
+_driver_dir=${pkgname}-${version}
+hostmakedepends="autoconf automake glib-devel gettext libtool libxml2-devel pkg-config"
+makedepends="atk-devel cups-devel gtk+-devel libglade-devel"
+depends="colord cups cups-filters eudev libglade libusb"
+short_desc="UFRII LT printer driver for Canon LBP printers"
+maintainer="Kamil Smardzewski <roderyk197@gmail.com>"
+license="custom:canon,GPL-2.0-or-later,MIT"
+homepage="https://www.canon-europe.com/support/consumer_products/products/printers/laser/i-sensys_lbp6030w.html"
+distfiles="https://gdlp01.c-wss.com/gds/0/0100005950/10/linux-UFRIILT-drv-v500-uken-18.tar.gz"
+checksum=46888140016bc1096694a0fd6fd3f6ad393970b8153756373a382dc82390f259
+repository="nonfree"
+nopie=yes
+
+case $XBPS_TARGET_MACHINE in
+	x86_64)
+		_bits=64
+		;;
+	i686)
+		_bits=32
+		;;
+esac
+
+CFLAGS="-fcommon"
+
+post_extract() {
+	mkdir ${build_wrksrc}
+	bsdtar xvf linux-UFRIILT-drv-v500-uken/Sources/${pkgname}-${version}-1.tar.gz -C ${build_wrksrc}
+}
+
+pre_configure() {
+	vsed -e '2a export LIBS="-lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgmodule-2.0"' -i "${_common_dir}/cngplp/autogen.sh"
+	vsed -e '2a export LIBS="-latk-1.0 -lgobject-2.0 -lglib-2.0 -lgdk_pixbuf-2.0 -lcups"' -i "${_driver_dir}/StatusMonitor/autogen.sh"
+
+	for _subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${_subdir} && autoreconf -i )
+	done
+
+	for _subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${_subdir} && autoreconf -i )
+	done
+}
+
+do_configure() {
+	local _buftool_abs_path="${wrksrc}/${build_wrksrc}/${_common_dir}/buftool"
+
+	( cd ${_common_dir}/buftool && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin --disable-shared --enable-static )
+	( cd ${_common_dir}/cngplp && ./autogen.sh ${configure_args} COMMON_SUFFIX=2l )
+	( cd ${_common_dir}/cnjbig && ./autogen.sh ${configure_args} )
+	( cd ${_common_dir}/rasterfilter && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} )
+
+	( cd ${_driver_dir}/ppd && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/cngplp && ./autogen.sh ${configure_args} --prefix=/usr )
+	( cd ${_driver_dir}/cngplp/files && ./autogen.sh ${configure_args} )
+	( cd ${_driver_dir}/StatusMonitor && LDFLAGS="-L${_buftool_abs_path} -no-pie" ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+	( cd ${_driver_dir}/cpca && ./autogen.sh ${configure_args} --enable-progpath=/usr/bin )
+}
+
+do_build() {
+	( cd ${_common_dir} && make )
+	( cd ${_driver_dir} && make )
+}
+
+pre_install() {
+	pushd "lib/libs${_bits}"
+
+	rm "libcanon_slimsfp.so" "libcanon_slimsfp.so.1"
+	rm "libinfor.so" "libinfor.so.1"
+
+	for _so_file in \
+		libcanon_slimsfp.so.1.0.0 \
+		libccpd_utilr.so.1.0.0 \
+		libcomm_stdoutr.so.1.0.0 \
+		libcomm_usbmlportr.so.1.0.0 \
+		libcomm_usbsockr.so.1.0.0 \
+		libcomm_websrvr.so.1.0.0 \
+		libcomm_ncapcaior.so.1.0.0 \
+		libcaio_usb_cdcr.so.1.0.0 \
+		libCUPS_Communicatorr.so.1.0.0 \
+		libCommIsolationr.so.1.0.0 \
+		libcanon_commonr.so.1.0.0 \
+		libinfor.so.1.0.0 \
+		libinfo_analyzer.so.1.0.0 \
+		libcanonncapr.so.1.0.0 \
+		libcnncapcmr.so.1.0.0 \
+		libncapfilterr.so.1.0.0
+	do
+		ln -s ${_so_file} ${_so_file%.1.0.0}
+		ln -s ${_so_file} ${_so_file%.0.0}
+	done
+
+	ln -s libcaepcmsfp.so.1.0 libcaepcmsfp.so.1
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so.2
+	ln -s libColorGearCsfp.so.2.0.0 libColorGearCsfp.so
+
+	popd
+
+	vsed -e 's/cnsetuputil2l\/images\/128x128/icons\/hicolor\/128x128\/apps/' -i cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop
+	vsed -e 's/Application;Utility/Utility/' -i cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop
+}
+
+do_install() {
+	for _subdir in "buftool" "cngplp" "cnjbig" "rasterfilter"
+	do
+		( cd ${_common_dir}/${_subdir} && make install DESTDIR=${DESTDIR} COMMON_SUFFIX=2 )
+	done
+
+	for _subdir in "cngplp/files" "cngplp" "cpca" "ppd" "StatusMonitor"
+	do
+		( cd ${_driver_dir}/${_subdir} && make install DESTDIR=${DESTDIR} )
+	done
+
+	pushd "lib/libs${_bits}"
+
+	vbin cnpkmodulencapr
+	vbin cnrsdrvsfp
+	vbin cnsetuputil2l
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Bidi
+	for _so_file in \
+		libcaio_usb_cdcr.so \
+		libccpd_utilr.so \
+		libcomm_ncapcaior.so \
+		libcomm_stdoutr.so \
+		libcomm_usbmlportr.so \
+		libcomm_usbsockr.so \
+		libcomm_websrvr.so
+	do
+		vcopy ${_so_file}* usr/lib/Canon/CUPS_SFPR/Bidi
+	done
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Bins
+	vinstall commandfilefilterr 755 usr/lib/Canon/CUPS_SFPR/Bins
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Libs
+	for _so_file in \
+		libCUPS_Communicatorr.so \
+		libCommIsolationr.so \
+		libcanon_commonr.so \
+		libinfo_analyzer.so \
+		libinfor.so
+	do
+		vcopy ${_so_file}* usr/lib/Canon/CUPS_SFPR/Libs
+	done
+
+	for _so_file in \
+		libColorGearCsfp.so \
+		libcaepcmsfp.so \
+		libcanon_slimsfp.so \
+		libcanonncapr.so \
+		libcnncapcmr.so \
+		libncapfilterr.so
+	do
+		vcopy ${_so_file}* usr/lib
+	done
+
+	vmkdir usr/lib/Canon/CUPS_SFPR/Utilities
+	vinstall pksmncapr 4755 usr/lib/Canon/CUPS_SFPR/Utilities
+
+	for _locale in "de" "es" "fr" "it" "ja" "ko" "zh_CN" "zh_TW"
+	do
+		vmkdir usr/share/locale/${_locale}/LC_MESSAGES
+		vinstall ${_locale}/LC_MESSAGES/cnsetuputil2l.mo 644 usr/share/locale/${_locale}/LC_MESSAGES
+	done
+
+	vmkdir usr/share/caepcm/sfp
+	vcopy ../data/sfp/* usr/share/caepcm/sfp
+
+	vmkdir usr/share/ncapfilterr
+	vinstall ThLB_37A.BIN 644 usr/share/ncapfilterr
+
+	popd
+
+	vcopy ${_driver_dir}/StatusMonitor/Message usr/lib/Canon/CUPS_SFPR/Utilities
+
+	vmkdir usr/lib/udev/rules.d
+	vinstall ${_driver_dir}/rules/80-usb-ncapstatusui2l.rules 644 usr/lib/udev/rules.d
+
+	vmkdir usr/share/cups/usb
+	vinstall ${_driver_dir}/rules/canon-sfp-printerr.usb-quirks 644 usr/share/cups/usb
+
+	vmkdir usr/share/applications
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil2l.desktop 644 usr/share/applications
+
+	vmkdir usr/share/icons/hicolor/128x128/apps
+	vinstall cnrdrvcups-utility-5.00/data/cnsetuputil.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vlicense ../linux-UFRIILT-drv-v500-uken/Documents/LICENSE-EN.txt LICENSE
+	vlicense ${_driver_dir}/cpca/cnpklib/LICENSE.canon.txt COPYRIGHT.cnpklib
+
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/README-ufr2lt-5.0xUK.html
+	vdoc ../linux-UFRIILT-drv-v500-uken/Documents/UsersGuide-ufr2lt-UK.html
+
+	vdoc ${_common_dir}/README README.common
+	vdoc ${_common_dir}/cngplp/README README.cngplp.common
+
+	vdoc ${_driver_dir}/README README.driver
+	vdoc ${_driver_dir}/StatusMonitor/README README.statusmonitor
+	vdoc ${_driver_dir}/cngplp/README README.cngplp.driver
+
+	vdoc $FILESDIR/README.voidlinux
+}

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

* Re: New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (11 preceding siblings ...)
  2021-06-16 22:20 ` [PR PATCH] [Updated] " baal-zebub
@ 2022-05-22  2:11 ` github-actions
  2022-06-05  2:13 ` [PR PATCH] [Closed]: " github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2022-05-22  2:11 UTC (permalink / raw)
  To: ml

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

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/31451#issuecomment-1133802440

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

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

* Re: [PR PATCH] [Closed]: New package: cnrdrvcups-sfp-5.00
  2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
                   ` (12 preceding siblings ...)
  2022-05-22  2:11 ` github-actions
@ 2022-06-05  2:13 ` github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2022-06-05  2:13 UTC (permalink / raw)
  To: ml

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

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

New package: cnrdrvcups-sfp-5.00
https://github.com/void-linux/void-packages/pull/31451

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

end of thread, other threads:[~2022-06-05  2:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 14:09 [PR PATCH] New package: cndrvcups-lt-5.00 baal-zebub
2021-06-14 11:39 ` baal-zebub
2021-06-14 11:40 ` baal-zebub
2021-06-15 16:17 ` [PR PATCH] [Updated] " baal-zebub
2021-06-15 16:51 ` baal-zebub
2021-06-15 17:09 ` [PR PATCH] [Updated] New package: cnrdrvcups-sfp-5.00 baal-zebub
2021-06-15 21:53 ` baal-zebub
2021-06-15 21:53 ` baal-zebub
2021-06-15 22:01 ` baal-zebub
2021-06-16 16:11 ` [PR REVIEW] " Chocimier
2021-06-16 16:42 ` baal-zebub
2021-06-16 16:44 ` baal-zebub
2021-06-16 22:20 ` [PR PATCH] [Updated] " baal-zebub
2022-05-22  2:11 ` github-actions
2022-06-05  2:13 ` [PR PATCH] [Closed]: " github-actions

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