contrib/zathura/Pkgfile

29 lines
798 B
Plaintext
Raw Normal View History

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
# Depends on: girara
# Optional: texlive
name=zathura
2022-02-16 12:41:28 +01:00
version=0.4.9
2021-09-25 18:22:36 +02:00
release=1
2022-03-18 15:55:14 +01:00
source=(https://git.pwmt.org/pwmt/$name/-/archive/$version/$name-$version.tar.bz2)
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 \
-D b_pie=true \
-D magic=enabled
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 {} \;
}