void-packages/srcpkgs/pcsclite/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

39 lines
1.1 KiB
Bash

# Template file for 'pcsclite'
pkgname=pcsclite
version=1.9.1
revision=1
wrksrc="pcsc-lite-upstream-${version}"
build_style=gnu-configure
configure_args="--enable-libudev --disable-libsystemd"
hostmakedepends="intltool pkg-config python3"
makedepends="eudev-libudev-devel libusb-devel python3-devel"
depends="python3"
short_desc="Middleware to access a smart card using SCard API (PC/SC)"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="BSD-2-Clause"
homepage="https://salsa.debian.org/debian/pcsc-lite"
distfiles="https://salsa.debian.org/debian/pcsc-lite/-/archive/upstream/${version}/pcsc-lite-upstream-${version}.tar.gz"
checksum=686fbd1c29e282388111f01b6fdfa4fe6b8349908236645b869115b21e4f73e8
post_install() {
vsv pcscd
vlicense COPYING
}
pcsclite-devel_package() {
short_desc+=" - development files"
depends="libpcsclite>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.la"
vmove "usr/lib/*.so"
}
}
libpcsclite_package() {
short_desc+=" - library files"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}