5769f150de
```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 ```
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'usbguard'
|
|
pkgname=usbguard
|
|
version=1.0.0
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--with-crypto-library=sodium --with-bundled-catch --with-bundled-pegtl"
|
|
conf_files="/etc/usbguard/*"
|
|
make_dirs="/var/log/usbguard 0755 root root"
|
|
hostmakedepends="automake libtool pkg-config asciidoc glib-devel protobuf"
|
|
makedepends="libqb-devel libsodium-devel protobuf-devel polkit-devel libcap-ng-devel libseccomp-devel"
|
|
short_desc="Tool for whitelisting and blacklisting USB devices"
|
|
maintainer="Philoponus Bindle <philoponus-bindle@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://usbguard.github.io"
|
|
distfiles="https://github.com/USBGuard/usbguard/releases/download/usbguard-$version/usbguard-$version.tar.gz"
|
|
checksum=5617986cd5dd1a2d311041648a1977d836cf4e33a4121d7f82599f21496abc42
|
|
|
|
post_install() {
|
|
vsv usbguard
|
|
}
|
|
|
|
usbguard-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libqb-devel ${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|