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

34 lines
834 B
Bash

# Template file for 'libmp4v2'
pkgname=libmp4v2
version=2.0.0
revision=4
wrksrc="mp4v2-${version}"
build_style=gnu-configure
make_install_args="install-man"
short_desc="MPEG-4 library from mpeg4ip"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://code.google.com/p/mp4v2/"
license="MPL-1.1"
distfiles="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${wrksrc}.tar.bz2"
checksum=0319b9a60b667cf10ee0ec7505eb7bdc0a2e21ca7a93db96ec5bd758e3428338
CXXFLAGS="-Wno-narrowing"
libmp4v2-devel_package() {
depends="libmp4v2>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
mpeg4ip_package() {
short_desc="MPEG-4 tools from mpeg4ip"
pkg_install() {
vmove usr/bin
vmove usr/share
}
}