765e304c4b
```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 ```
25 lines
845 B
Bash
25 lines
845 B
Bash
# Template file for 'mednafen'
|
|
pkgname=mednafen
|
|
version=1.26.1
|
|
revision=1
|
|
wrksrc="$pkgname"
|
|
build_style=gnu-configure
|
|
configure_args="--with-libsndfile --enable-alsa $(vopt_enable altivec)
|
|
ac_cv_sizeof_off_t=8"
|
|
hostmakedepends="pkg-config libtool gettext-devel"
|
|
makedepends="libsndfile-devel glu-devel SDL2-devel zlib-devel"
|
|
short_desc="Portable, argument(command-line)-driven multi-system emulator"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://mednafen.github.io/"
|
|
distfiles="https://mednafen.github.io/releases/files/mednafen-${version}.tar.xz"
|
|
checksum=842907c25c4292c9ba497c9cb9229c7d10e04e22cb4740d154ab690e6587fdf4
|
|
nopie=yes
|
|
|
|
build_options="altivec"
|
|
desc_option_altivec="Enable AltiVec support on PowerPC"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) build_options_default="altivec";;
|
|
*) ;;
|
|
esac
|