void-packages/srcpkgs/ipv6calc/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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

14 lines
570 B
Bash

# Template file for 'ipv6calc'
pkgname=ipv6calc
version=3.1.0
revision=1
build_style=gnu-configure
configure_args="--enable-geoip --enable-mmdb --enable-external"
hostmakedepends="perl"
makedepends="geoip-devel libmaxminddb-devel db-devel"
short_desc="Small utility to manipulate IPv6 addresses"
maintainer="Lon Willett <xgit@lonw.net>"
license="GPL-2.0-only"
homepage="https://www.deepspace6.net/projects/ipv6calc.html"
distfiles="https://github.com/pbiering/ipv6calc/archive/${version}.tar.gz"
checksum=db690da55a31db063f87af7731cf5c913d8622057fc6c9f66f879725b1540496