# Template file for 'fbpdf' pkgname=fbpdf version=0.0.20220624 revision=1 _githash=6276360f47edd71de736e153f5dcc82b6d60b3db _gitshort="${_githash:0:7}" build_style=gnu-makefile makedepends="djvulibre-devel freetype-devel harfbuzz-devel gumbo-parser-devel mupdf-devel" short_desc="Small framebuffer PDF/DJVU viewer" maintainer="Leah Neukirchen " license="ISC" homepage="https://repo.or.cz/w/fbpdf.git" distfiles="https://repo.or.cz/fbpdf.git/snapshot/${_githash}.tar.gz" checksum=7e0a95465c051fdbec56982efabe20b73745b12e60a2b23277afde8e4b16ec5e pre_build() { # Can't do it via LDFLAGS, that messes up the linking order vsed 's/-threads/& -lgumbo -lfreetype -lharfbuzz -lz -ljbig2dec -ljpeg -lopenjp2/' \ -i Makefile } do_install() { vbin fbpdf vbin fbdjvu vman fbpdf.1 vlicense LICENSE }