void-packages/srcpkgs/eb/template
Đoàn Trần Công Danh a03d116397 srcpkgs/e*: 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

36 lines
770 B
Bash

# Template file for 'eb'
pkgname=eb
version=4.4.3
revision=3
build_style=gnu-configure
hostmakedepends="perl"
makedepends="zlib-devel"
short_desc="C library and tools for accessing CD-ROM books"
maintainer="John <me@johnnynator.dev>"
license="BSD-3-Clause"
homepage="https://github.com/2ion/eb"
distfiles="https://github.com/2ion/eb/archive/${version}.tar.gz"
checksum=16274f4d5ec34cc37ed308927390a1d0d09e0e6a2b35fbff7d17aacca0524a37
post_install() {
vlicense COPYING
}
libeb-devel_package() {
depends="libeb>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/aclocal
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}
libeb_package() {
short_desc+=" - Library"
pkg_install() {
vmove usr/lib
}
}