36 lines
935 B
Bash
36 lines
935 B
Bash
# 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 <duncaen@voidlinux.org>"
|
|
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
|
|
}
|