I tested building this program without this PKGBUILD
git clone https://github.com/aligrudi/fbpdf
I didnt do any edits to the Makefile. No "sed" this, nor "patch" that.
The Makefile has these options :
$ make
all clean fbdjvu fbpdf fbpdf2 poppler.o
As the developer states in the README:
.... There are three make targets: fbpdf uses mupdf library for rendering pdf,
fbpdf2 uses poppler for the same purpose ...
Providing you have all the dependencies needed, both make fbpdf2 and make fbdjvu, built sucessfuly, and both programs work as expected.
make fbpdf, however, fails with:
$ make fbpdf
cc -o fbpdf fbpdf.o mupdf.o draw.o -L./lib -lmupdf -lmupdf-third -lmupdf-pkcs7 -lmupdf-threads -lm
/usr/bin/ld: cannot find -lmupdf-pkcs7
/usr/bin/ld: cannot find -lmupdf-threads
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: fbpdf] Error 1
Pinned Comments
xlucn commented on 2022-06-24 05:46 (UTC) (edited on 2023-11-20 08:36 (UTC) by xlucn)
I updated the package. Apart from the fixes (please test it), most notably I removed the poppler-based fbpdf2, and renamed "fbpdf" as "fbpdf-mupdf" instead of "neatfbpdf", still to avoid conflict with "fbida" package. Those are just my own decisions, so they can be changed again.
If you want poppler-based variant, see https://aur.archlinux.org/packages/fbpdf-poppler-git.