Having trouble installing xerox-c525a

Hi,

i need a driver for my Dell 1320c printer. The Xerox C525A driver works for me under ubuntu. With manjaro, the AUR (AUR (en) - xerox-c525a) does not work.

I’ve tried to manually download the rpm from the Xerox website (called Fuji_Xerox-DocuPrint_C525_A_AP-1.0-1.i386.rpm). Then i modified the PKGBUILD from AUR (en) - xerox-c525a

# Maintainer: Martin Müllenhaupt <mm+aur@netlair.de>

pkgname="xerox-c525a"
pkgver="1.0"
pkgrel="1"
pkgdesc="CUPS driver for the Fuji Xerox DocuPrint C525 A and Dell 1320C printer"
url="http://onlinesupport.fujixerox.com"
license=('custom')
arch=('i686' 'x86_64')
depends_x86_64=('lib32-libcups')
makedepends=('rpmextract')
sha256sums=('4bd7ac464527336c4feb9a1fbbd798e532fb87a6eb1e0e25717cce1909721d51')

#source=(
#  http://www.fujixeroxprinters.com/downloads/uploaded/dpc525a_linux_.0.0.tar_81c2.zip
#)

package() {
  rpm2cpio "./Fuji_Xerox-DocuPrint_C525_A_AP-1.0-1.i386.rpm" | bsdtar -vxf - -C ${pkgdir} 
}

Then i ran makepkg -si

 [marvin@t5600 xerox-c525a]$ makepkg -si              
==> Making package: xerox-c525a 1.0-1 (Mi 30 Sep 2020 23:38:41 CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: lib32-keyutils will be installed before its lib32-krb5 dependency

Packages (14) lib32-e2fsprogs-1.45.6-1  lib32-gmp-6.2.0-1  lib32-gnutls-3.6.15-1  lib32-keyutils-1.6.3-1  lib32-krb5-1.18.2-1  lib32-libidn2-2.3.0-1  lib32-libjpeg-turbo-2.0.5-1  lib32-libldap-2.4.50-1  lib32-libpng-1.6.37-3
              lib32-libtiff-4.1.0-1  lib32-libunistring-0.9.10-1  lib32-nettle-3.6-1  lib32-openssl-1:1.1.1.g-1  lib32-libcups-2.3.3-1

Total Download Size:    5,14 MiB
Total Installed Size:  15,21 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 lib32-e2fsprogs-1.45.6-1-x86_64                                                                                  224,3 KiB   543 KiB/s 00:00 [######################################################################################] 100%
 lib32-openssl-1:1.1.1.g-1-x86_64                                                                                1367,4 KiB  1640 KiB/s 00:01 [######################################################################################] 100%
 lib32-libldap-2.4.50-1-x86_64                                                                                    194,5 KiB  1118 KiB/s 00:00 [######################################################################################] 100%
 lib32-keyutils-1.6.3-1-x86_64                                                                                      8,7 KiB  0,00   B/s 00:00 [######################################################################################] 100%
 lib32-krb5-1.18.2-1-x86_64                                                                                       897,5 KiB   925 KiB/s 00:01 [######################################################################################] 100%
 lib32-libjpeg-turbo-2.0.5-1-x86_64                                                                               257,9 KiB   921 KiB/s 00:00 [######################################################################################] 100%
 lib32-libtiff-4.1.0-1-x86_64                                                                                     178,7 KiB   638 KiB/s 00:00 [######################################################################################] 100%
 lib32-libpng-1.6.37-3-x86_64                                                                                     129,7 KiB   480 KiB/s 00:00 [######################################################################################] 100%
 lib32-gmp-6.2.0-1-x86_64                                                                                         283,7 KiB   414 KiB/s 00:01 [######################################################################################] 100%
 lib32-nettle-3.6-1-x86_64                                                                                        304,1 KiB   441 KiB/s 00:01 [######################################################################################] 100%
 lib32-libunistring-0.9.10-1-x86_64                                                                               365,7 KiB   337 KiB/s 00:01 [######################################################################################] 100%
 lib32-libidn2-2.3.0-1-x86_64                                                                                      58,7 KiB   441 KiB/s 00:00 [######################################################################################] 100%
 lib32-gnutls-3.6.15-1-x86_64                                                                                     741,5 KiB   400 KiB/s 00:02 [######################################################################################] 100%
 lib32-libcups-2.3.3-1-x86_64                                                                                     246,0 KiB   451 KiB/s 00:01 [######################################################################################] 100%
(14/14) checking keys in keyring                                                                                                              [######################################################################################] 100%
(14/14) checking package integrity                                                                                                            [######################################################################################] 100%
(14/14) loading package files                                                                                                                 [######################################################################################] 100%
(14/14) checking for file conflicts                                                                                                           [######################################################################################] 100%
(14/14) checking available disk space                                                                                                         [######################################################################################] 100%
:: Processing package changes...
( 1/14) installing lib32-e2fsprogs                                                                                                            [######################################################################################] 100%
( 2/14) installing lib32-openssl                                                                                                              [######################################################################################] 100%
Optional dependencies for lib32-openssl
    ca-certificates [installed]
( 3/14) installing lib32-libldap                                                                                                              [######################################################################################] 100%
( 4/14) installing lib32-keyutils                                                                                                             [######################################################################################] 100%
( 5/14) installing lib32-krb5                                                                                                                 [######################################################################################] 100%
( 6/14) installing lib32-libjpeg-turbo                                                                                                        [######################################################################################] 100%
( 7/14) installing lib32-libtiff                                                                                                              [######################################################################################] 100%
( 8/14) installing lib32-libpng                                                                                                               [######################################################################################] 100%
( 9/14) installing lib32-gmp                                                                                                                  [######################################################################################] 100%
(10/14) installing lib32-nettle                                                                                                               [######################################################################################] 100%
(11/14) installing lib32-libunistring                                                                                                         [######################################################################################] 100%
(12/14) installing lib32-libidn2                                                                                                              [######################################################################################] 100%
(13/14) installing lib32-gnutls                                                                                                               [######################################################################################] 100%
(14/14) installing lib32-libcups                                                                                                              [######################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (1) rpmextract-1.0-9

Total Download Size:   0,00 MiB
Total Installed Size:  0,00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 rpmextract-1.0-9-any                                                                                               2,4 KiB  0,00   B/s 00:00 [######################################################################################] 100%
(1/1) checking keys in keyring                                                                                                                [######################################################################################] 100%
(1/1) checking package integrity                                                                                                              [######################################################################################] 100%
(1/1) loading package files                                                                                                                   [######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                             [######################################################################################] 100%
(1/1) checking available disk space                                                                                                           [######################################################################################] 100%
:: Processing package changes...
(1/1) installing rpmextract                                                                                                                   [######################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Retrieving sources...
==> Extracting sources...
==> Entering fakeroot environment...
==> Starting package()...
no package supplied
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "xerox-c525a"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: xerox-c525a 1.0-1 (Mi 30 Sep 2020 23:39:05 CEST)
==> Installing package xerox-c525a with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) xerox-c525a-1.0-1


:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                [######################################################################################] 100%
(1/1) checking package integrity                                                                                                              [######################################################################################] 100%
(1/1) loading package files                                                                                                                   [######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                             [######################################################################################] 100%
(1/1) checking available disk space                                                                                                           [######################################################################################] 100%
:: Processing package changes...
(1/1) installing xerox-c525a 

But when i checked

[marvin@t5600 Downloads]$ sudo pacman -Q xerox-c525a
xerox-c525a 1.0-1
[marvin@t5600 Downloads]$ sudo pacman -Ql xerox-c525a
[marvin@t5600 Downloads]$ 

it seems like nothing was actually installed.

Can you tell me, what went wrong?

What does not work? By reading the comments, I gleaned the source URL no longer works. There’s a working URL in the comments.

You commented out the original source and didn’t tell makepkg about your RPM, so nothing was symlinked to the SRCDEST.

You could add the RPM you downloaded as the source, however since there is a working source URL and no additional tools are needed to extract the RPM, do it right:

pkgname=xerox-c525a
pkgver=1.0
pkgrel=1
pkgdesc="CUPS driver for the Fuji Xerox DocuPrint C525 A and Dell 1320C printer"
arch=('i686' 'x86_64')
url="https://onlinesupport.fujixerox.com"
license=('custom')
depends_x86_64=('lib32-libcups')
source=("https://onlinesupport.fujixerox.com//driver_downloads/Fuji_Xerox-DocuPrint_C525_A_AP-1.0-1.i386.rpm")
sha256sums=('2afdaedf8b29e879946e85c874f815f5267ee2935a4f2643b3967134a45698a9')

package() {
	cp -r --no-preserve=ownership usr "$pkgdir"
}

Thanks, works perfectly.

If anyone is interested:

[marvin@t5600 xerox]$ makepkg -si
==> Making package: xerox-c525a 1.0-1 (Do 01 Okt 2020 19:47:58 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading Fuji_Xerox-DocuPrint_C525_A_AP-1.0-1.i386.rpm...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  307k  100  307k    0     0   118k      0  0:00:02  0:00:02 --:--:--  118k
==> Validating source files with sha256sums...
    Fuji_Xerox-DocuPrint_C525_A_AP-1.0-1.i386.rpm ... Passed
==> Extracting sources...
  -> Extracting Fuji_Xerox-DocuPrint_C525_A_AP-1.0-1.i386.rpm with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "xerox-c525a"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: xerox-c525a 1.0-1 (Do 01 Okt 2020 19:48:05 CEST)
==> Installing package xerox-c525a with pacman -U...
[sudo] password for marvin: 
loading packages...
warning: xerox-c525a-1.0-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) xerox-c525a-1.0-1

Total Installed Size:  0,56 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                [######################################################################################] 100%
(1/1) checking package integrity                                                                                                              [######################################################################################] 100%
(1/1) loading package files                                                                                                                   [######################################################################################] 100%
(1/1) checking for file conflicts                                                                                                             [######################################################################################] 100%
(1/1) checking available disk space                                                                                                           [######################################################################################] 100%
:: Processing package changes...
(1/1) reinstalling xerox-c525a                                                                                                                [######################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[marvin@t5600 xerox]$ pacman -S xerox-c525a
error: you cannot perform this operation unless you are root.
[marvin@t5600 xerox]$ pacman -Q xerox-c525a
xerox-c525a 1.0-1
[marvin@t5600 xerox]$ pacman -Ql xerox-c525a
xerox-c525a /usr/
xerox-c525a /usr/lib/
xerox-c525a /usr/lib/cups/
xerox-c525a /usr/lib/cups/filter/
xerox-c525a /usr/lib/cups/filter/FXM_ALC
xerox-c525a /usr/lib/cups/filter/FXM_CC
xerox-c525a /usr/lib/cups/filter/FXM_HBPL
xerox-c525a /usr/lib/cups/filter/FXM_MF
xerox-c525a /usr/lib/cups/filter/FXM_PF
xerox-c525a /usr/lib/cups/filter/FXM_PM2FXR
xerox-c525a /usr/lib/cups/filter/FXM_PR
xerox-c525a /usr/lib/cups/filter/FXM_PS2PM
xerox-c525a /usr/lib/cups/filter/FXM_SBP
xerox-c525a /usr/share/
xerox-c525a /usr/share/cups/
xerox-c525a /usr/share/cups/FujiXerox/
xerox-c525a /usr/share/cups/FujiXerox/dlut/
xerox-c525a /usr/share/cups/FujiXerox/dlut/FX_DocuPrint_C525_A_AP.dlut
xerox-c525a /usr/share/cups/model/
xerox-c525a /usr/share/cups/model/FujiXerox/
xerox-c525a /usr/share/cups/model/FujiXerox/en/
xerox-c525a /usr/share/cups/model/FujiXerox/en/FX_DocuPrint_C525_A_AP.ppd