void-packages/srcpkgs/goaccess/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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

21 lines
636 B
Bash

# Template file for 'goaccess'
pkgname=goaccess
version=1.4.5
revision=1
build_style=gnu-configure
configure_args="--enable-utf8 --enable-geoip=legacy"
hostmakedepends="automake gettext gettext-devel tar"
makedepends="gettext-devel ncurses-devel geoip-devel"
short_desc="Open source real-time web log analyzer and interactive viewer"
maintainer="Bart Kerkvliet <bart@bannarte.nl>"
license="MIT"
homepage="https://goaccess.io"
distfiles="http://tar.goaccess.io/goaccess-${version}.tar.gz"
checksum=c4820e781f75d9446f6b1be5fc8d11c6ec94a47fa8dd523001698c589f46c1ba
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense COPYING
}