From c75f863eaffec4622347a7236ee004acb997d3cd Mon Sep 17 00:00:00 2001 From: Duncaen Date: Tue, 3 Dec 2024 20:28:12 +0100 Subject: [PATCH] New package: mangl-1.1.5 --- srcpkgs/mangl/template | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 srcpkgs/mangl/template diff --git a/srcpkgs/mangl/template b/srcpkgs/mangl/template new file mode 100644 index 00000000000..1c972a3ffcb --- /dev/null +++ b/srcpkgs/mangl/template @@ -0,0 +1,35 @@ +# Template file for 'mangl' +pkgname=mangl +version=1.1.5 +revision=1 +build_style=configure +hostmakedepends="pkg-config" +makedepends="zlib-devel libglvnd-devel freetype-devel glfw-devel" +short_desc="Graphical man page viewer based on the mandoc library" +maintainer="Duncaen " +license="BSD-2-Clause" +homepage="https://github.com/zigalenarcic/mangl" +distfiles="https://github.com/zigalenarcic/mangl/archive/refs/tags/v${version}.tar.gz" +checksum=8bbbadb66d1cb30d7e914e5b71993997e67c59103c55c8601410eeda35062157 + +pre_configure() { + cat >mandoc/configure.local <<-EOF + PREFIX=/usr + SBINDIR=/usr/bin + MANDIR=/usr/share/man + OSNAME="Void Linux" + BINM_SOELIM=mandoc-soelim + MANM_ROFF="mandoc_roff" + LDFLAGS="$LDFLAGS" + CFLAGS="$CFLAGS" + CC="$CC" + HAVE_REWB_BSD=0 + EOF + case "$XBPS_TARGET_MACHINE" in + *-musl) echo 'UTF8_LOCALE="C.UTF-8"' >>mandoc/configure.local;; + esac +} + +post_install() { + vlicense LICENSE +}