* 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 ```
28 lines
930 B
Bash
28 lines
930 B
Bash
# Template file for 'pipenightdreams'
|
|
pkgname=pipenightdreams
|
|
version=0.10.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake flex libtool pkg-config"
|
|
makedepends="SDL_image-devel"
|
|
short_desc="Just another pipe trip"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.libsdl.org/projects/pipenightdreams"
|
|
distfiles="${homepage}/packages/${pkgname}-${version}.tar.bz2"
|
|
checksum=302f8ce6e0eb32ebd779700527095cf086c2c7132d47095bae9a43c346245541
|
|
|
|
pre_configure() {
|
|
find . -type f -exec sed -i "{}" -e "s;/games/;/;g" \;
|
|
autoreconf -if
|
|
}
|
|
post_configure() {
|
|
# Replace non-expanded GAME_DATADIR prefix
|
|
sed -i src/config.h -e 's;"${prefix}/;"/usr/;'
|
|
}
|
|
post_install() {
|
|
vmkdir usr/share/applications
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
|
vmkdir usr/share/pixmaps
|
|
vinstall images/pipes_space/horizontal.png 644 usr/share/pixmaps ${pkgname}.png
|
|
}
|