void-packages/srcpkgs/seahorse-nautilus/template
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: 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
754 B
Bash

# Template file for 'seahorse-nautilus'
pkgname=seahorse-nautilus
version=3.10.1
revision=5
build_style=gnu-configure
configure_args="--disable-schemas-compile"
hostmakedepends="pkg-config intltool gpgme-devel gnupg glib"
makedepends="gtk+3-devel nautilus-devel libnotify-devel
gpgme-devel libcryptui-devel gcr-devel libgnome-keyring-devel"
depends="gnupg desktop-file-utils"
short_desc="Nautilus plugin for OpenPGP file encryption/decryption"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.gnome.org/projects/seahorse/"
distfiles="${GNOME_SITE}/seahorse-nautilus/${version%.*}/seahorse-nautilus-${version}.tar.xz"
checksum=eacaf33bba920cf117641393a6eef483dbc075009349082e77d22f79afbd823a
lib32disabled=yes