* arduino and antiword 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 ```
18 lines
600 B
Bash
18 lines
600 B
Bash
# Template file for 'aterm'
|
|
pkgname=aterm
|
|
version=1.0.1
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--enable-transparency --enable-greek --enable-thai"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libXt-devel libXext-devel"
|
|
short_desc="AfterStepX Terminal Emulator"
|
|
maintainer="pancake <pancake@nopcode.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.afterstep.org/aterm.php"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
|
checksum=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
|
|
|
|
pre_build() {
|
|
sed -i '/INSTALL_PROGRAM/s,-c -s,-c ,g' src/Makefile
|
|
}
|