void-packages/srcpkgs/ipp-usb/template
Đoàn Trần Công Danh 986c0a7d5e srcpkgs/i*: 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

26 lines
784 B
Bash

# Template file for 'ipp-usb'
pkgname=ipp-usb
version=0.9.19
revision=1
build_style=go
go_import_path="github.com/OpenPrinting/ipp-usb"
conf_files="/etc/ipp-usb/ipp-usb.conf"
hostmakedepends="pkg-config"
makedepends="avahi-libs-devel libusb-devel"
depends="avahi"
short_desc="Allows using the IPP protocol over usb connections"
maintainer="Philipp David <pd@3b.pm>"
license="BSD-2-Clause"
homepage="https://github.com/OpenPrinting/ipp-usb"
distfiles="https://github.com/OpenPrinting/ipp-usb/archive/$version.tar.gz"
checksum=06855b4da0bcaad430a42534c117a3f3224c4f6b0f6321da898e3422ae97ae15
post_install() {
vsv ipp-usb
vman ipp-usb.8
vdoc README.md
vdoc ${FILESDIR}/README.voidlinux
vdoc systemd-udev/71-ipp-usb.rules
vinstall ipp-usb.conf 644 /etc/ipp-usb
vlicense LICENSE
}