void-packages/srcpkgs/gnome-authenticator/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

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

23 lines
902 B
Bash

# Template file for 'gnome-authenticator'
pkgname=gnome-authenticator
version=3.32.2
revision=3
wrksrc="Authenticator-${version}"
build_style=meson
build_helper="gir"
hostmakedepends="gettext appstream-glib desktop-file-utils glib-devel pkg-config"
makedepends="gtk+3-devel libglib-devel libsecret-devel libzbar-devel"
depends="python3-pyzbar python3-Pillow python3-pyotp libhandy python3-gobject
gnome-keyring python3-yoyo-migrations python3-pyfavicon"
short_desc="Two-factor authentication code generator for GNOME"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/World/Authenticator"
distfiles="${homepage}/-/archive/${version}/Authenticator-${version}.tar.gz"
checksum="d7250fbef1de2dcb599a55ff3d40dcc6ed5618fe89d50ec795281d8ba3123d5b"
post_patch() {
find src/Authenticator/widgets -type f -exec \
sed -i '/init_template/d' {} +
}