void-packages/srcpkgs/httpdirfs/template

23 lines
734 B
Bash

# Template file for 'httpdirfs'
pkgname=httpdirfs
version=1.2.0
revision=5
build_style=gnu-makefile
make_install_args="prefix=/usr"
makedepends="libcurl-devel fuse-devel gumbo-parser-devel
libuuid-devel expat-devel"
short_desc="Mount HTTP directory listings, with a permanent cache"
maintainer="Nathan Owens <ndowens04@gmail.com>"
license="GPL-3.0-only"
homepage="https://github.com/fangfufu/httpdirfs"
distfiles="https://github.com/fangfufu/httpdirfs/archive/${version}.tar.gz"
checksum=05be4d83434eaea002f550b77aed6c05ff135927662d53a6e2b224e766a50a9a
CFLAGS="-D_FILE_OFFSET_BITS=64"
# Hack to output version
pre_build() {
vsed -e "/HTTPDirFS/s|VERSION|${version}|" -i src/main.c
vsed -e "s|VERSION|${version}|" -i src/util.h
}