void-packages/srcpkgs/httpdirfs/template

28 lines
862 B
Bash

# Template file for 'httpdirfs'
pkgname=httpdirfs
version=1.2.4
revision=1
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="pkg-config help2man"
makedepends="libcurl-devel fuse-devel gumbo-parser-devel
libuuid-devel expat-devel"
short_desc="Mount HTTP directory listings, with a permanent cache"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://github.com/fangfufu/httpdirfs"
changelog="https://raw.githubusercontent.com/fangfufu/httpdirfs/master/CHANGELOG.md"
distfiles="https://github.com/fangfufu/httpdirfs/archive/refs/tags/${version}.tar.gz"
checksum=c55b1020af76c6303e441c4529726396ca14e001941791df4046daa6a5a34877
CFLAGS="-D_FILE_OFFSET_BITS=64"
pre_configure() {
vsed -e "s,^VERSION\s\+=.*,VERSION = ${version}," -i Makefile
vsed -e "s,-fsanitize=undefined,," -i Makefile
}
post_build() {
make man
}