void-packages/srcpkgs/bzflag/template
Đoàn Trần Công Danh c6ce65d3d0 srcpkgs/b*: 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
631 B
Bash

# Template file for 'bzflag'
pkgname=bzflag
version=2.4.22
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="SDL2-devel c-ares-devel glew-devel libcurl-devel ncurses-devel zlib-devel"
short_desc="3D networked multi-player tank battle game"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="LGPL-2.1-only, MPL-2.0"
homepage="https://www.bzflag.org"
changelog="https://raw.githubusercontent.com/BZFlag-Dev/bzflag/2.4/ChangeLog"
distfiles="https://download.bzflag.org/bzflag/source/${version}/bzflag-${version}.tar.bz2"
checksum=9e64653302b657bd8b5f96fe1150a9ff80a1d53a6d7e8a35138c6b1b02006a4d