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

34 lines
1.2 KiB
Bash

# Template file for 'geary'
pkgname=geary
version=3.38.1
revision=2
build_helper="gir"
build_style=meson
configure_args="-Dcontractor=true"
hostmakedepends="desktop-file-utils iso-codes pkg-config itstool
gobject-introspection vala glib-devel gettext"
makedepends="enchant2-devel gcr-devel gmime3-devel libsoup-devel libglib-devel
libgee08-devel libsecret-devel webkit2gtk-devel libxml2-devel
gnome-online-accounts-devel json-glib-devel libunwind-devel libcanberra-devel
folks-devel appstream-glib-devel gspell-devel ytnef-devel libhandy1-devel
libpeas-devel gsound-devel"
depends="gir-freedesktop gnome-keyring"
short_desc="Lightweight email program for the GNOME desktop"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Apps/Geary"
_series=${version%.${version#*.*.}}
distfiles="${GNOME_SITE}/${pkgname}/${_series}/geary-${version}.tar.xz"
checksum=e72e212798536657d5100e1e1a4a67f3836d6f0235340aae53e576f2a774e812
post_patch() {
case "$XBPS_TARGET_MACHINE" in
i686-musl|ppc*-musl) ;;
*)
vsed -i meson.build -e 's;@UCONTEXT_LIB@;;'
return 0
;;
esac
vsed -i meson.build -e \
"s;@UCONTEXT_LIB@;cc.find_library('libucontext', dirs: unwind_lib);"
}