void-packages/srcpkgs/balsa/template
Đoàn Trần Công Danh c6ce65d3d0 srcpkgs/b*: 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
794 B
Bash

# Template file for 'balsa'
pkgname=balsa
version=2.6.1
revision=2
build_style=gnu-configure
configure_args="--without-gnome --with-libsecret --with-gpgme --with-sqlite
--with-html-widget=webkit2 --with-spell-checker=gspell"
hostmakedepends="automake gettext-devel intltool pkg-config"
makedepends="gspell-devel gmime3-devel gnutls-devel gpgme-devel iso-codes
libesmtp-devel libnotify-devel libsecret-devel webkit2gtk-devel libical-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Email client for GNOME"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://pawsa.fedorapeople.org/balsa/"
distfiles="https://pawsa.fedorapeople.org/balsa/balsa-${version}.tar.bz2"
checksum=6441772cb5e1870f10c358c21f7e709da8cc0bfa6cc005ec744b9f1b00ea7df6