void-packages/srcpkgs/freeorion/template
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc is kept at -Np0

```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

31 lines
1.1 KiB
Bash

# Template file for 'freeorion'
pkgname=freeorion
version=0.4.10
revision=2
_release=${version}_2020-07-10.f3d403e
wrksrc=src-tarball
build_style=cmake
hostmakedepends="cppcheck doxygen python3-pycodestyle"
makedepends="boost-devel libvorbis-devel
freetype-devel glew-devel libopenal-devel python3-devel SDL2-devel"
depends="${pkgname}-data desktop-file-utils hicolor-icon-theme"
short_desc="Turn-based space empire and galactic conquest (4X) computer game"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://freeorion.org/index.php/Main_Page"
changelog="https://raw.githubusercontent.com/freeorion/freeorion/master/ChangeLog.md"
distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/FreeOrion_v${_release}_Source.tar.gz"
checksum=e72ab42cba1ee8842507340931ef389e64011e040a4adc74add5f4997bbcba8b
post_extract() {
_build_no=${_release/*_/}
sed -i -e "s|\${FreeOrion_BUILD_NO}|$_build_no|" util/Version.cpp.in
}
freeorion-data_package() {
short_desc+=" - data files"
license="GPL-2.0-or-later, CC-BY-SA-3.0"
pkg_install() {
vmove usr/share/freeorion
}
}