```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 ```
22 lines
627 B
Bash
22 lines
627 B
Bash
# Template file for 'typespeed'
|
|
pkgname=typespeed
|
|
version=0.6.5
|
|
revision=2
|
|
build_style=gnu-configure
|
|
makedepends="gettext-devel ncurses-devel"
|
|
conf_files="/etc/typespeedrc"
|
|
short_desc="Test your typing speed"
|
|
maintainer="David <kalichakra@zoho.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://typespeed.sourceforge.net"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum="5c860385ceed8a60f13217cc0192c4c2b4705c3e80f9866f7d72ff306eb72961"
|
|
mutable_files="/var/games/typespeed.score"
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
post_configure() {
|
|
for dir in src testsuite; do
|
|
sed -i 's/CC = gcc//' $dir/Makefile
|
|
done
|
|
}
|