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

20 lines
552 B
Bash

# Template file for 'ibus-avro'
pkgname=ibus-avro
version=1.2
revision=2
build_style=gnu-configure
make_install_target="installdeb"
hostmakedepends="automake pkg-config"
makedepends="ibus-devel"
depends="ibus gjs"
short_desc="Avro Phonetic Bangla typing for Linux"
maintainer="Nafis <mnabid.25@outlook.com>"
license="MPL-1.1"
homepage="https://linux.omicronlab.com"
distfiles="https://github.com/sarim/${pkgname}/archive/${version}.tar.gz"
checksum=9d00f12f2d01916e56533fd0267173b644a57161770b60a0f4d9daa61fe8bd1a
pre_configure() {
autoreconf -vfi
}