void-packages/srcpkgs/cinnamon-session/template
Đoàn Trần Công Danh c987560802 srcpkgs/c*: 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

19 lines
879 B
Bash

# Template file for 'cinnamon-session'
pkgname=cinnamon-session
version=4.8.0
revision=1
build_style=meson
build_helper=gir
configure_args="-Dgconf=false"
hostmakedepends="pkg-config gobject-introspection
gettext-devel dbus-glib-devel glib-devel intltool xmlto"
makedepends="gtk+3-devel dbus-devel json-glib-devel libSM-devel
cinnamon-desktop-devel libcanberra-devel upower-devel
elogind-devel libXtst-devel xapps-devel"
depends="cinnamon-desktop desktop-file-utils hicolor-icon-theme elogind"
short_desc="Cinnamon session handler"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="https://linuxmint-developer-guide.readthedocs.io/en/latest/cinnamon.html#cinnamon-session"
distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
checksum=66301a1eb748f646c419ced76f3388d8d6af0436716c737842cd85f359bd38d4