void-packages/srcpkgs/endless-sky/template
Đoàn Trần Công Danh a03d116397 srcpkgs/e*: 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
548 B
Bash

# Template file for 'endless-sky'
pkgname=endless-sky
version=0.9.13
revision=2
build_style=scons
makedepends="SDL2-devel glew-devel libjpeg-turbo-devel libmad-devel
libopenal-devel libpng-devel"
short_desc="Space exploring, trading, and combat game"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://endless-sky.github.io/"
distfiles="https://github.com/endless-sky/endless-sky/archive/v${version}.tar.gz"
checksum=001c8a28bbec7491f2725fbaa52b1ade813d33cec2d16521f241c80d04685b9d
replaces="endless-sky-data>=0"