void-packages/srcpkgs/OpenXcom/template
Đoàn Trần Công Danh ec4c2d75fa srcpkgs/[A-Z]*: 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

20 lines
680 B
Bash

# Template file for 'OpenXcom'
pkgname=OpenXcom
version=1.0
revision=4
build_style=gnu-configure
configure_args="--disable-silent-rules --disable-werror"
hostmakedepends="automake pkg-config xmlto"
makedepends="SDL_gfx-devel SDL_image-devel SDL_mixer-devel
glu-devel boost-devel yaml-cpp-devel"
short_desc="Reimplementation of the original X-Com game"
maintainer="beefcurtains <beefcurtains@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://openxcom.org/"
distfiles="https://github.com/SupSuper/${pkgname}/archive/v${version}.tar.gz"
checksum=45acb280010a01d60506b1c5f2951ae501c012cc6161aac470bd15c1e6981246
pre_configure() {
aclocal --install -Im4
autoreconf -fi
}