* 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 ```
36 lines
1,017 B
Bash
36 lines
1,017 B
Bash
# Template file for 'pingus'
|
|
pkgname=pingus
|
|
version=0.7.6
|
|
revision=14
|
|
wrksrc="pingus-v${version}"
|
|
build_style=scons
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL_image-devel SDL_mixer-devel boost-devel libpng-devel"
|
|
depends="${pkgname}-data"
|
|
short_desc="Free Lemmings-like puzzle game"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://pingus.seul.org/"
|
|
distfiles="https://gitlab.com/pingus/pingus/-/archive/v${version}/pingus-v${version}.tar.gz"
|
|
checksum=31cb2c0ecddd49dbe03535648e8c7c2971da469c52af52cdf9dc2459798342c8
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
# XXX: defining CXXFLAGS breaks dependency detection.
|
|
scons ${makejobs} CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
|
|
LINKFLAGS="$LDFLAGS" \
|
|
prefix=/usr destdir=${DESTDIR} DESTDIR=${DESTDIR}
|
|
}
|
|
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
vinstall ${FILESDIR}/pingus.desktop 644 usr/share/applications
|
|
}
|
|
|
|
pingus-data_package() {
|
|
short_desc+=" - data files"
|
|
nostrip=yes
|
|
pkg_install() {
|
|
vmove usr/share/pingus
|
|
}
|
|
}
|