2021-09-25 18:22:39 +02:00
|
|
|
# Description: PDF support for zathura using mupdf rendering library
|
|
|
|
# URL: https://pwmt.org/projects/zathura-pdf-mupdf
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: gumbo-parser jbig2dec mujs mupdf zathura
|
|
|
|
|
|
|
|
name=zathura-pdf-mupdf
|
2022-12-15 09:11:58 +00:00
|
|
|
version=0.4.0
|
2022-08-25 21:27:57 +02:00
|
|
|
release=1
|
2022-05-07 14:48:59 +02:00
|
|
|
source=(https://git.pwmt.org/pwmt/$name/-/archive/$version/$name-$version.tar.bz2
|
|
|
|
0001-Remove-mupdf-linking-detection.patch)
|
2021-09-25 18:22:39 +02:00
|
|
|
|
|
|
|
build() {
|
2022-05-07 14:48:59 +02:00
|
|
|
patch -Np1 -d $name-$version -i $SRC/0001-Remove-mupdf-linking-detection.patch
|
|
|
|
|
2021-09-25 18:22:39 +02:00
|
|
|
meson setup $name-$version build \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
2022-03-18 15:54:49 +01:00
|
|
|
-D b_pie=true
|
2021-09-25 18:22:39 +02:00
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
find $PKG -perm /go+w -exec chmod go-w {} \;
|
|
|
|
}
|