c6ce65d3d0
```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 ```
23 lines
668 B
Bash
23 lines
668 B
Bash
# Template file for 'basu'
|
|
pkgname=basu
|
|
version=0.2.0
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dwerror=false"
|
|
hostmakedepends="gperf"
|
|
short_desc="SD-Bus library extracted from systemd"
|
|
maintainer="Anubhav Kini <anubhavkini@gmail.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/emersion/basu"
|
|
distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=e2fda9b69fc6c4530173fcf8db94c29aa5f3ed932d948cc6a31892623cde5e4b
|
|
|
|
basu-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|