void-packages/srcpkgs/h2o/template
Đoàn Trần Công Danh 200bed5c06 srcpkgs/h*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

37 lines
851 B
Bash

# Template file for 'h2o'
pkgname=h2o
version=2.2.6
revision=3
build_style=cmake
conf_files="/etc/h2o.conf"
hostmakedepends="pkg-config"
makedepends="openssl-devel libuv-devel zlib-devel"
depends="perl"
short_desc="Optimized HTTP server with support for HTTP/1.x and HTTP/2"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://h2o.examp1e.net/"
distfiles="https://github.com/h2o/h2o/archive/v${version}.tar.gz"
checksum=f8cbc1b530d85ff098f6efc2c3fdbc5e29baffb30614caac59d5c710f7bda201
system_accounts="h2o"
make_dirs="
/var/log/h2o 0755 h2o h2o
/srv/www/h2o 0755 h2o h2o"
post_install() {
vsv h2o
vconf ${FILESDIR}/h2o.conf
vlicense LICENSE
}
h2o-devel_package() {
short_desc+=" - development files"
depends="${makedepends}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}