void-packages/srcpkgs/vanitygen/template
Đoàn Trần Công Danh 76acfa2dd2 srcpkgs/v*: 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

22 lines
718 B
Bash

# Template file for 'vanitygen'
pkgname=vanitygen
version=1.53
revision=2
wrksrc="vanitygen-plus-PLUS${version}"
makedepends="pcre-devel openssl-devel"
short_desc="Bitcoin vanity address generator"
maintainer="Orphaned <orphan@voidlinux.org>"
license="AGPL-3.0-or-later"
homepage="https://github.com/exploitagency/vanitygen-plus"
changelog="https://raw.githubusercontent.com/exploitagency/vanitygen-plus/master/CHANGELOG"
distfiles="https://github.com/exploitagency/vanitygen-plus/archive/PLUS${version}.tar.gz"
checksum=976a9afe2a4470551a8b6b0da97101a3a2e6c54c5a26dc870ae755bb2d8c7041
do_build() {
make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" ${makejobs}
}
do_install() {
vbin vanitygen
vbin keyconv
vlicense LICENSE
}