986c0a7d5e
```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 ```
20 lines
716 B
Bash
20 lines
716 B
Bash
# Template file for 'imwheel'
|
|
pkgname=imwheel
|
|
version=1.0.0
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}pre12"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-gpm --disable-gpm-doc"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="libX11-devel libXtst-devel libXmu-devel"
|
|
short_desc="Universial mouse wheel and stick translator for X11"
|
|
maintainer="ManfredU <mu@usselmann.it>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://imwheel.sourceforge.net/"
|
|
distfiles="https://sourceforge.net/projects/${pkgname}/files/${pkgname}-source/${version}pre12/${pkgname}-${version}pre12.tar.gz"
|
|
checksum=2320ed019c95ca4d922968e1e1cbf0c075a914e865e3965d2bd694ca3d57cfe3
|
|
|
|
pre_configure() {
|
|
mv configure.{in,ac}
|
|
autoreconf -fi
|
|
}
|