2021-09-25 18:22:36 +02:00
|
|
|
# Description: Highly customizable and functional document viewer
|
|
|
|
# URL: https://pwmt.org/projects/zathura
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-12-09 21:45:22 +01:00
|
|
|
# Depends on: girara json-glib
|
2021-09-25 18:22:36 +02:00
|
|
|
# Optional: texlive
|
|
|
|
|
|
|
|
name=zathura
|
2024-05-05 09:55:10 +02:00
|
|
|
version=0.5.6
|
2021-09-25 18:22:36 +02:00
|
|
|
release=1
|
2024-05-04 09:12:16 +02:00
|
|
|
source=(https://github.com/pwmt/zathura/archive/$version/$name-$version.tar.gz)
|
2021-09-25 18:22:36 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
prt-get isinst texlive && PKGMK_ZATHURA+=" -D synctex=enabled" || PKGMK_ZATHURA=" -D synctex=disabled"
|
|
|
|
|
|
|
|
meson setup $name-$version build $PKGMK_ZATHURA \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
2022-09-10 14:48:48 +02:00
|
|
|
-D b_pie=true
|
2021-09-25 18:22:36 +02:00
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/share/{locale,fish}
|
|
|
|
find $PKG -perm /go+w -exec chmod go-w {} \;
|
|
|
|
}
|