* 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 ```
37 lines
998 B
Bash
37 lines
998 B
Bash
# Template file for 'antimicrox'
|
|
pkgname=antimicrox
|
|
version=3.1.3
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config extra-cmake-modules itstool gettext qt5-qmake
|
|
qt5-host-tools"
|
|
makedepends="qt5-tools-devel SDL2-devel libXi-devel libXtst-devel libX11-devel
|
|
qt5-x11extras-devel"
|
|
short_desc="Map keyboard buttons and mouse controls to a gamepad"
|
|
maintainer="fosslinux <fosslinux@aussies.space>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/AntiMicroX/antimicrox"
|
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
|
checksum=53c6b0e6c8ea8c3a5527b56e1ad052eae983ba36abfc090769c6164bc5f342dd
|
|
|
|
libantimicrox_package() {
|
|
short_desc+=" - libraries"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
|
|
libantimicrox-devel_package() {
|
|
depends="libantimicrox>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so
|
|
vmove usr/include
|
|
}
|
|
}
|
|
|
|
antimicro_package() {
|
|
build_style=meta
|
|
depends="${sourcepkg}"
|
|
short_desc+=" - transitional dummy package"
|
|
}
|