```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 ```
15 lines
558 B
Bash
15 lines
558 B
Bash
# Template file for 'zaz'
|
|
pkgname=zaz
|
|
version=1.0.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ftgl-devel SDL_image-devel libvorbis-devel
|
|
libtheora-devel freetype-devel"
|
|
short_desc="Arcade action puzzle game"
|
|
maintainer="David Ferlier <dispertio@gmx.es>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://zaz.sourceforge.net"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=e332cc1a6559e18a2b632940c53d20e2f2d2b583ba9dc1fd02a586437f9f0397
|
|
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
|