* gcc is kept at -Np0, because of void-cross ```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 ```
36 lines
1 KiB
Bash
36 lines
1 KiB
Bash
# Template file for 'geis'
|
|
pkgname=geis
|
|
version=2.2.17
|
|
revision=8
|
|
build_style="gnu-configure"
|
|
configure_args="--disable-static"
|
|
hostmakedepends="pkg-config python3-devel"
|
|
makedepends="dbus-devel grail-devel frame-devel libXi-devel python3-devel xorg-server-devel"
|
|
short_desc="Gesture Engine Interface and Support"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://launchpad.net/geis"
|
|
distfiles="https://launchpad.net/geis/trunk/$version/+download/geis-$version.tar.xz"
|
|
checksum=8a60f5683852094038904e690d23cc5a90a980fc52da67f0f28890baa25c70eb
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
configure_args+=" --enable-integration-tests=no"
|
|
fi
|
|
|
|
geis-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
geis-python3_package() {
|
|
short_desc+=" - Python3 bindings"
|
|
pkg_install() {
|
|
vmove usr/bin/pygeis
|
|
vmove usr/share/man/man1/pygeis.1
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|