* 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
```
32 lines
1022 B
Bash
32 lines
1022 B
Bash
# Template file for 'aqbanking'
|
|
pkgname=aqbanking
|
|
version=6.3.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config gwenhywfar tar"
|
|
makedepends="gwenhywfar-devel xmlsec1-devel ktoblzcheck-devel gmp-devel"
|
|
short_desc="Library for online banking and financial applications"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-only, GPL-3.0-only"
|
|
homepage="http://www.aquamaniac.de/aqbanking"
|
|
distfiles="https://www.aquamaniac.de/rdm/attachments/download/372/${pkgname}-${version}.tar.gz"
|
|
checksum=a0e85da2072c927bc32cfd808caaccfdabe34725e75618b08d8049306d8355cc
|
|
disable_parallel_build=yes
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
export PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig
|
|
configure_args+=" -with-xmlmerge=/usr/bin/xmlmerge"
|
|
fi
|
|
|
|
aqbanking-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/aqbanking-config
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/aclocal
|
|
}
|
|
}
|