void-packages/srcpkgs/itstool/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

15 lines
508 B
Bash

# Template file for 'itstool'
pkgname=itstool
version=2.0.6
revision=4
build_style=gnu-configure
configure_args="PYTHON=/usr/bin/python3"
hostmakedepends="python3 libxml2-python3"
makedepends="$hostmakedepends"
depends="$makedepends"
short_desc="ITS Tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://itstool.org/"
distfiles="http://files.itstool.org/itstool/${pkgname}-${version}.tar.bz2"
checksum=6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9