void-packages/srcpkgs/fbpdf/template

30 lines
841 B
Bash

# Template file for 'fbpdf'
pkgname=fbpdf
version=0.0.20200616
revision=3
_githash=f59002487edba502aaa93e9aec3bb6ebbbe41b0e
_gitshort="${_githash:0:7}"
wrksrc="fbpdf-${_gitshort}"
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 <leah@vuxu.org>"
license="ISC"
homepage="https://repo.or.cz/w/fbpdf.git"
distfiles="https://repo.or.cz/fbpdf.git/snapshot/${_githash}.tar.gz"
checksum=a86483a3ec144b68b89641abccb848b390ad901732c5e6043e3eb67e0ede7986
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
}