summaryrefslogtreecommitdiff
path: root/zathura/Pkgfile
blob: 13f2c55557c7992ccf7e76ed261a95183bf69b81 (plain)
    1 # Description: Highly customizable and functional document viewer
    2 # URL: https://pwmt.org/projects/zathura
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: girara
    5 # Optional: texlive
    6 
    7 name=zathura
    8 version=0.5.2
    9 release=1
   10 source=(https://git.pwmt.org/pwmt/$name/-/archive/$version/$name-$version.tar.bz2)
   11 
   12 build() {
   13   prt-get isinst texlive && PKGMK_ZATHURA+=" -D synctex=enabled" || PKGMK_ZATHURA=" -D synctex=disabled"
   14 
   15   meson setup $name-$version build $PKGMK_ZATHURA \
   16     --prefix=/usr \
   17     --sysconfdir=/etc \
   18     --buildtype=plain \
   19     --wrap-mode nodownload \
   20     -D b_lto=true \
   21     -D b_pie=true
   22   meson compile -C build
   23   DESTDIR=$PKG meson install -C build
   24 
   25   rm -rf $PKG/usr/share/{locale,fish}
   26   find $PKG -perm /go+w -exec chmod go-w {} \;
   27 }

Generated by cgit