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

41 lines
1.3 KiB
Bash

# Template file for 'clutter'
pkgname=clutter
version=1.26.4
revision=1
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection) --enable-evdev --enable-evdev-input
--enable-wayland-backend --enable-egl-backend --enable-wayland-compositor
--enable-gdk-backend"
hostmakedepends="automake libtool pkg-config intltool glib-devel
gettext-devel"
makedepends="atk-devel pango-devel libXi-devel libXcomposite-devel json-glib-devel
libgudev-devel libxkbcommon-devel cogl-devel libinput-devel libevdev-devel
eudev-libudev-devel gtk+3-devel"
short_desc="OpenGL based interactive canvas library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://www.clutter-project.org"
distfiles="${GNOME_SITE}/clutter/${version%.*}/clutter-${version}.tar.xz"
checksum=8b48fac159843f556d0a6be3dbfc6b083fc6d9c58a20a49a6b4919ab4263c4e6
build_options="gir"
build_options_default="gir"
pre_configure() {
autoreconf -fi
}
clutter-devel_package() {
depends="${makedepends} clutter>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}