void-packages/srcpkgs/ibus-anthy/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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

25 lines
728 B
Bash

# Template file for 'ibus-anthy'
pkgname=ibus-anthy
version=1.5.11
revision=2
build_style=gnu-configure
build_helper=gir
configure_args="--libexec=/usr/lib/ibus"
hostmakedepends="automake libtool pkg-config swig intltool gettext-devel"
makedepends="anthy-devel ibus-devel python3-gobject-devel"
depends="ibus"
short_desc="Japanese input method Anthy IMEngine for IBus Framework"
maintainer="7185 <7185@free.fr>"
license="LGPL-2.1-or-later"
homepage="https://github.com/ibus/ibus/wiki"
distfiles="https://github.com/ibus/${pkgname}/archive/${version}.tar.gz"
checksum=57d42a302be72409708274aa680c6d7515077766853a2b9193b9974c9c6eeaf6
make_check=extended
post_patch() {
2to3 -w gir/test.py
}
pre_configure() {
autoreconf -fi
}