void-packages/srcpkgs/pidgin-libnotify/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

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

21 lines
748 B
Bash

# Template file for 'pidgin-libnotify'
pkgname=pidgin-libnotify
version=0.14
revision=3
build_style=gnu-configure
configure_args="--disable-deprecated --disable-static"
hostmakedepends="intltool pkg-config"
makedepends="pidgin-devel libnotify-devel"
short_desc="Pidgin plugin that enables popups when someone logs in or messages you"
maintainer="Kharlamov Alexey <der@2-47.ru>"
# See its only source file pidgin-libnotify.c
license="GPL-2.0-or-later"
homepage="http://gaim-libnotify.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/gaim-libnotify/${pkgname}-${version}.tar.gz"
checksum=74f4a9f20e0a483df39974178f1f2380786176189512bcd438e4ada280ec3abe
lib32disabled=yes
post_patch() {
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
}