49cb564d14
* par 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 ```
27 lines
761 B
Bash
27 lines
761 B
Bash
# Template file for 'python-evdev'
|
|
pkgname=python-evdev
|
|
version=1.2.0
|
|
revision=4
|
|
build_style=python-module
|
|
pycompile_module="evdev"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
short_desc="Python2 bindings for the Linux input subsystem"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/gvalkov/python-evdev"
|
|
distfiles="https://github.com/gvalkov/python-evdev/archive/v${version}.tar.gz"
|
|
checksum=f788584510620251c6a6c68802935b71c4b474df99b87ee223e18b84dd1719a6
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-evdev_package() {
|
|
pycompile_module="evdev"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|