void-packages/srcpkgs/voltron/template
Đoàn Trần Công Danh 76acfa2dd2 srcpkgs/v*: 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

19 lines
629 B
Bash

# Template file for 'voltron'
pkgname=voltron
version=0.1.7
revision=5
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-blessed python3-Flask python3-Pygments python3-pysigset
python3-requests python3-scruffy python3-requests-unixsocket
python3-Flask-RESTful python3-setuptools"
short_desc="Hacky debugger UI for hackers"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="MIT"
homepage="https://github.com/snare/voltron"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=2919dabe5ebc05672dcedf400754e3fbce8c3b9f8608a64cea205591f3b47f63
post_install() {
vlicense LICENSE
}