```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
22 lines
734 B
Bash
22 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
|
|
}
|