void-packages/srcpkgs/asignify/template
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword 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

31 lines
781 B
Bash

# Template file for 'asignify'
pkgname=asignify
version=1.0
revision=4
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Yet another signify tool"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/vstakhov/asignify"
distfiles="https://github.com/vstakhov/asignify/archive/${version}.tar.gz"
checksum=81272713900b51049633139549181fa23e56eeb580e0ea0325546d2fe7ca503d
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
do_install() {
make PREFIX=/usr mandir=/usr/share/man DESTDIR=${DESTDIR} install
vlicense LICENSE
}
asignify-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}