Not able to build pdfsam AUR package for a custom Manjaro ISO

I’m building a Manjaro ISO, the ISO profile is on GitHub as well as the download repo with the ISO build action and the releases (the built ISOs).

I already forked and built some AUR packages with buildpkg and uploaded them to a custom repo of mine, also on GitHub.

But I’m not able to build the pdfsam AUR package.

I’m running:

$ buildpkg -p pdfsam

But it is failing:

==> Validating source files with sha512sums...
    pdfsam-basic-5.3.2-linux-x64.tar.gz ... Passed
    pdfsam ... Passed
==> Making package: pdfsam 5.3.2-1 (Wed 27 Aug 2025 06:59:16 PM UTC)
==> Checking runtime dependencies...
==> Installing missing dependencies...
:: There are 2 providers available for java-runtime=21:
:: Repository extra
   1) jdk21-openjdk  2) jre21-openjdk

Enter a number (default=1): 
error: target not found: archlinux-java-run
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> hicolor-icon-theme
  -> java-runtime=21
  -> archlinux-java-run
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (2) desktop-file-utils-0.28-1  gendesk-1.0.10-1

Total Installed Size:  6.76 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                  [##################################] 100%
(2/2) checking package integrity                                [##################################] 100%
(2/2) loading package files                                     [##################################] 100%
(2/2) checking for file conflicts                               [##################################] 100%
:: Processing package changes...
(1/2) installing desktop-file-utils                             [##################################] 100%
(2/2) installing gendesk                                        [##################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> ERROR: Could not resolve all dependencies.

Any ideas on what can I do?

archlinux-java-run is an AUR package, so it must be installed manually in the chroot.

FYI, buildpkg from manjaro-tools-pkg-git is deprecated in favor of chrootbuild from manjaro-chrootbuild.

sudo chrootbuild -c -p pdfsam -i /path/to/archlinux-java-run-11-1-any.pkg.tar.zst

Thank you for the quick reply!

I forked archlinux-java-run and built it first:

sudo chrootbuild -c -p archlinux-java-run

Then I was able to build pdfsam:

sudo chrootbuild -c -p pdfsam -i archlinux-java-run-11-1-any.pkg.tar.zs

I do not do any of that above I keep my Aur packages on gitlab then detail them in Desktop-Packages

## AUR packages
electricsheep
epson-inkjet-printer-escpr
flam3
glee
google-chrome
aic94xx-firmware
ast-firmware
mkinitcpio-firmware
upd72020x-fw
wd719x-firmware
ncurses5-compat-libs
preload
xsane

You need to have a file called user-repo.conf

[online-repo]
SigLevel = Never
Server = https://gitlab.com/robin0800/online-repo/raw/main

This pulls the files from gitlab at build time
If any AUR files are updated they are built and stored in /var/cache/pacman/pkg/ you then need to update the package on gitlab.