a03d116397
```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 ```
29 lines
792 B
Bash
29 lines
792 B
Bash
# Template file for 'evemu'
|
|
pkgname=evemu
|
|
version=2.7.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config python3 asciidoc xmlto"
|
|
makedepends="libevdev-devel"
|
|
short_desc="Kernel device emulation"
|
|
maintainer="Nathan Owens <ndowens@artixlinux.org>"
|
|
license="LGPL-3.0-only, MIT"
|
|
homepage="https://freedesktop.org/wiki/Evemu/"
|
|
distfiles=${FREEDESKTOP_SITE}/evemu/evemu-$version.tar.xz
|
|
checksum=78c9400d55eeeb5ab75161360543f9376438c4da4934cb34cdda5b46021ae379
|
|
|
|
post_install() {
|
|
sed -n '/Copyright/,/IN THE SOFTWARE/p' src/evemu.c >LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
evemu-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|