void-packages/srcpkgs/gstreamermm/template
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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

33 lines
927 B
Bash

# Template file for 'gstreamermm'
pkgname=gstreamermm
version=1.10.0
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config perl"
makedepends="gst-plugins-base1-devel pangomm-devel"
configure_args="--disable-plugins-bad"
short_desc="GStreamer API C++ bindings"
maintainer="newbluemoon <blaumolch@mailbox.org>"
homepage="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
license="GPL-2, GPL-2.1"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=be58fe9ef7d7e392568ec85e80a84f4730adbf91fb0355ff7d7c616675ea8d60
post_install() {
vlicense COPYING
vlicense COPYING.examples
vlicense COPYING.tools
}
gstreamermm-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/gstreamermm-1.0
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/share
}
}