Github messages for voidlinux
 help / color / mirror / Atom feed
From: baal-zebub <baal-zebub@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: cnrdrvcups-sfp-5.00
Date: Tue, 15 Jun 2021 23:53:22 +0200	[thread overview]
Message-ID: <20210615215322.3M3t-GtV-7D29lsMusTAWnq_McE2_Ss4PC6z82SaEoA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31451@inbox.vuxu.org>

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

  parent reply	other threads:[~2021-06-15 21:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=20210615215322.3M3t-GtV-7D29lsMusTAWnq_McE2_Ss4PC6z82SaEoA@z \
    --to=baal-zebub@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).