You are not logged in.

#1 2020-11-01 19:25:10

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

[SOLVED] Creating AUR package for Canon TS5150 cnijfilter

I want to create a cnijfilter-ts5150 AUR package. The driver can be downloaded as source to be compiled.
I'm inexperienced with printer drivers and I'm unsure how to proceed with this. I searched the wiki (and google) for some hints, but unsuccessfully so far.
I see some options for myself how to go:
* Look for a well established cnijfilter AUR package. Based on votes I found some but don't know which one would be the best for me to serve as a model.
* The source package contains debian sources too, so I could use that to imitate the steps in a PKGBUILD.
* I haven't found a readme or some document in the source package that would describe how to build the package from source, but maybe there is one I overlooked.

I know how to create packages in AUR, my question is only about the cups driver specific part. Please help me to find the right information

Last edited by SanskritFritz (2020-11-02 11:43:10)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#2 2020-11-01 22:44:17

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Creating AUR package for Canon TS5150 cnijfilter

There is a com/ directory containing precompiled blobs without source code, and several directories containing the standard configure.in (well, non-standard, it should be configure.ac) and Makefile.am autotools support, so, my guess is: you need to install the blobs manually, and use autoreconf -fi; ./configure; make to build/install each subdirectory.

There is also a ppd/ directory containing *.ppd files describing each supported printer, those will need to get installed to /usr/share/cups/{ppd,model} (not sure which directory is appropriate, both seem to be used by "some" packages).

This is also more or less the process used by cnijfilter2.spec which is the rpm package recipe.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2020-11-02 11:03:00

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: [SOLVED] Creating AUR package for Canon TS5150 cnijfilter

@eschwartz
Thank you. I missed the rpm spec file, which is very useful for simply copy-paste the build process snippets into the PKGBUILD. That makes the process very easy.
I got aware of the cnijfilter-common package which includes some patches as well. What is this package for? Do I need to use that somehow?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#4 2020-11-02 11:41:16

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: [SOLVED] Creating AUR package for Canon TS5150 cnijfilter

... and now I found the cnijfilter2 package which is exactly what I wanted to achieve here.
Shouldn't that package be renamed to cnijfilter2-common?
I mark this thread as solved in the meanwhile.

UPDATE
@progandy: thanks I just discovered it, don't know how it avoided my attention so far.

Last edited by SanskritFritz (2020-11-02 11:45:01)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#5 2020-11-02 11:43:05

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Creating AUR package for Canon TS5150 cnijfilter

I suggest you simply try to install the "cnijfilter2" package from the AUR. I'd guess it should include the drivers for all supported canon printers.

No, it should not be renamed to cnijfilter2-common. the -common package is the result of creating split packages for different printers. Some files are common to all printers, so the printer specific packages all depend on the -common package. The cnijfilter2 package should contain everything in a single package without splitting, so the suffix is unnecessary and arguably wrong.

Canon has the annoying habit of recommending old versions of their software for some printers and not make you aware that newer versions will work as well. I fell into the same trap when I had a Canon printer. Sometimes the older version is really necessary, but not always.

Last edited by progandy (2020-11-02 11:49:52)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#6 2020-11-02 13:11:14

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: [SOLVED] Creating AUR package for Canon TS5150 cnijfilter

@progandy
Thanks for the clarification.
I'll ask the maintainer to include the supported printers into the tag list so we can find this package to our printer more easily.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#7 2020-11-02 13:48:30

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Creating AUR package for Canon TS5150 cnijfilter

SanskritFritz wrote:

@progandy
Thanks for the clarification.
I'll ask the maintainer to include the supported printers into the tag list so we can find this package to our printer more easily.

That wouldn't be a good idea, there seem to be more than 90 printer series supported, that means more than 100 printers.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#8 2020-11-02 20:39:43

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,954
Website

Re: [SOLVED] Creating AUR package for Canon TS5150 cnijfilter

Fair enough, but then again, that's what tags are for IMO.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

Board footer

Powered by FluxBB