void-packages/srcpkgs/Terminal/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

17 lines
684 B
Bash

# Template file for 'Terminal'
pkgname=Terminal
version=0.9.9
revision=2
build_style=gnu-makefile
make_use_env=yes
make_build_args="OBJCFLAGS=-fcommon messages=yes"
hostmakedepends="gnustep-make gcc-objc which"
makedepends="gnustep-base-devel gnustep-gui-devel"
depends="gnustep-base gnustep-gui gnustep-back"
short_desc="Terminal emulator for GNUstep"
maintainer="Phosu Parsons <founderofjp@gmail.com>"
license="GPL-2.0-only"
homepage="http://gap.nongnu.org/terminal/"
distfiles="${NONGNU_SITE}/gap/${pkgname}-${version}.tar.gz"
checksum=27f81bbecdbd10cde8c080012cde4973bec20e551c58c29f353733cf03c220e9
nocross="objc doesn't get cross build at present within gcc (see gnustep-base)"