void-packages/srcpkgs/zathura/template

43 lines
1.3 KiB
Bash

# Template file for 'zathura'
pkgname=zathura
version=0.5.8
revision=1
build_style=meson
configure_args="-Dsynctex=enabled"
hostmakedepends="pkg-config gettext python3-Sphinx desktop-file-utils
appstream-glib glib-devel librsvg-utils"
makedepends="girara-devel sqlite-devel file-devel zlib-devel libseccomp-devel
libglib-devel texlive-devel"
checkdepends="gettext-devel check-devel xvfb-run"
short_desc="Highly customizable and functional document viewer"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="Zlib"
homepage="https://pwmt.org/projects/zathura/"
changelog="https://pwmt.org/projects/zathura/changelog/${version}/index.html"
distfiles="https://pwmt.org/projects/zathura/download/zathura-${version}.tar.xz"
checksum=f2bf8dcb2edff10a8e11f1f981bf8f6a42b997b4f851ab00bfd33a706ad43af8
if [ -z "$CROSS_BUILD" ] && [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=enabled"
else
configure_args+=" -Dtests=disabled"
fi
if [ "$XBPS_TARGET_LIBC" = musl ]; then
CPPFLAGS="-D__NR_landlock_create_ruleset=444 -D__NR_landlock_add_rule=445 \
-D__NR_landlock_restrict_self=446"
fi
post_install() {
vlicense LICENSE
}
zathura-devel_package() {
depends="girara-devel cairo-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}