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

23 lines
715 B
Bash

# Template file for 'prototype'
pkgname=prototype
version=1.0.0
revision=1
makedepends="libpng-devel SDL2_mixer-devel"
short_desc="RType remake from Dark Castle Software"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain"
homepage="https://github.com/ptitSeb/prototype"
distfiles="https://github.com/ptitSeb/prototype/archive/v${version}.tar.gz"
checksum=400f8a5c727c9feaa6b48b65c23c312db41dd238af9526659bf3342346c05af6
CXXFLAGS="-Wno-write-strings"
do_build() {
make SDL2=1 LINUX=1 CPP=$CXX LD=$CXX ${makejobs}
}
do_install() {
vmkdir usr/libexec/prototype
vcopy Data usr/libexec/prototype
install -m755 prototype ${DESTDIR}/usr/libexec/prototype
vbin ${FILESDIR}/prototype.sh prototype
}