```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 ```
19 lines
659 B
Bash
19 lines
659 B
Bash
# Template file for 'xboxdrv'
|
|
pkgname=xboxdrv
|
|
version=0.8.8
|
|
revision=3
|
|
wrksrc="xboxdrv-linux-${version}"
|
|
build_style=scons
|
|
hostmakedepends="pkg-config glib-devel dbus-glib-devel"
|
|
makedepends="boost-devel libX11-devel eudev-libudev-devel libusb-devel dbus-glib-devel glib-devel"
|
|
short_desc="Xbox Gamepad Userspace Driver"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://xboxdrv.gitlab.io/"
|
|
distfiles="https://xboxdrv.gitlab.io/xboxdrv-linux-${version}.tar.bz2"
|
|
checksum=f4fb8c09c0ce3841798f129ae4c2caf3f6db9786d78ad941994e425e3ffc168a
|
|
python_version=3
|
|
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
}
|