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

27 lines
1.1 KiB
Bash

# Template file for 'pcsx2'
archs="i686*"
lib32mode="full"
nopie=yes
pkgname=pcsx2
version=1.6.0
revision=2
build_style=cmake
# store all data that pcsx2 has to access into /usr/lib, so it can be accessed
# on multilib setups. when/if pcsx2 supports 64-bit builds, GAMEINDEX_DIR should
# be moved to /usr/share/pcsx2
configure_args="-DGLSL_API=1 -DSDL2_API=TRUE -DPACKAGE_MODE=1 -DREBUILD_SHADER=1
-DXDG_STD=1 -DDISABLE_ADVANCE_SIMD=1
-DPLUGIN_DIR=/usr/lib${XBPS_TARGET_WORDSIZE}/pcsx2
-DGAMEINDEX_DIR=/usr/lib${XBPS_TARGET_WORDSIZE}/pcsx2"
hostmakedepends="pkg-config sparsehash perl"
makedepends="alsa-lib-devel SDL2-devel glu-devel glew-devel libaio-devel
libcanberra-devel libjpeg-turbo-devel wxWidgets-devel portaudio-devel soundtouch-devel
libpcap-devel glib-devel"
depends="desktop-file-utils"
short_desc="Sony PlayStation 2 emulator"
maintainer="Selfsigned <selfsigned@protonmail.ch>"
license="GPL-3.0-or-later, GPL-2.0-or-later, LGPL-2.1-or-later, LGPL-3.0-or-later"
homepage="http://www.pcsx2.net"
distfiles="https://github.com/PCSX2/pcsx2/archive/v${version}.tar.gz"
checksum=c09914020e494640f187f46d017f9d142ce2004af763b9a6c5c3a9ea09e5281c