* wine 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
```
32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
# Template file for 'workrave'
|
|
pkgname=workrave
|
|
version=1.10.45
|
|
revision=1
|
|
_realversion="${version//./_}"
|
|
wrksrc="${pkgname}-${_realversion}"
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-static --disable-gnome --disable-gsettings
|
|
$(vopt_enable pulseaudio pulse)"
|
|
hostmakedepends="automake autoconf-archive gettext-devel intltool python3-Jinja2
|
|
pkg-config python3-cheetah3 libtool"
|
|
makedepends="boost-devel gtkmm-devel libSM-devel libXtst-devel libXScrnSaver-devel
|
|
$(vopt_if pulseaudio pulseaudio-devel)"
|
|
short_desc="Program that assists in the recovery and prevention of RSI"
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://www.workrave.org/"
|
|
distfiles="https://github.com/rcaelers/${pkgname}/archive/v${_realversion}.tar.gz"
|
|
checksum=b9c8d1aaae16ca55c98d361a392f879a306a4ecf6db28663a7e96d0c205dabc0
|
|
|
|
build_options="pulseaudio"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" gettext-devel"
|
|
LDFLAGS="-lintl"
|
|
fi
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|