void-packages/srcpkgs/libscrypt/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

23 lines
632 B
Bash

# Template file for 'libscrypt'
pkgname=libscrypt
version=1.21
revision=2
build_style=gnu-makefile
short_desc="Library that implements scrypt() functionality"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="2-clause-BSD"
homepage="https://github.com/technion/"
distfiles="https://github.com/technion/${pkgname}/archive/v${version}.tar.gz"
checksum=68e377e79745c10d489b759b970e52d819dbb80dd8ca61f8c975185df3f457d3
post_install() {
vlicense LICENSE
}
libscrypt-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}