void-packages/srcpkgs/perl-OpenGL/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

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

15 lines
619 B
Bash

# Template file for 'perl-OpenGL'
pkgname=perl-OpenGL
version=0.70
revision=3
wrksrc="OpenGL-${version}"
build_style=perl-module
hostmakedepends="perl libfreeglut-devel libXmu-devel"
makedepends="perl libfreeglut-devel libXmu-devel"
depends="perl libfreeglut libXmu"
short_desc="Wrapper library that allows OpenGL to be used in Perl"
maintainer="Jasper Chan <jasperchan515@gmail.com>"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://metacpan.org/release/OpenGL"
distfiles="${CPAN_SITE}/OpenGL/${pkgname#perl-}-${version}.tar.gz"
checksum=b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0