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

18 lines
740 B
Bash

# Template file for 'ccsm'
pkgname=ccsm
version=0.8.18
revision=2
build_style=python3-module
hostmakedepends="automake intltool libtool pkg-config python3"
makedepends="compiz-core-devel compizconfig-python python3-cairo-devel pygtk-devel"
depends="compizconfig-python python3-cairo python3-gobject"
short_desc="Compiz Configuration Seetings Manager for Compiz Reloaded"
maintainer="CoolOhm <micvlas@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/compiz-reloaded"
distfiles="https://github.com/compiz-reloaded/ccsm/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=99192a021631cc5a82131fbc03d2f1b7e587892878902113d9bde57a6b00bfa4
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" python-gobject-devel"
fi