void-packages/srcpkgs/ofono/template
Đoàn Trần Công Danh 2fd8d4df94 srcpkgs/o*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

28 lines
885 B
Bash

# Template file for 'ofono'
pkgname=ofono
version=1.31
revision=2
build_style=gnu-configure
configure_args="--disable-bluez4 --enable-external-ell"
conf_files="/etc/ofono/phonesim.conf /etc/dbus-1/system.d/ofono.conf"
hostmakedepends="pkg-config"
makedepends="libglib-devel eudev-libudev-devel mobile-broadband-provider-info ell-devel"
short_desc="Infrastructure for building mobile telephony (GMS/UTMS) applications"
maintainer="Daniel Santana <daniel@santana.tech>"
license="GPL-2.0-or-later"
homepage="https://01.org/ofono"
distfiles="${KERNEL_SITE}/network/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=a15c5d28096c10eb30e47a68b6dc2e7c4a5a99d7f4cfedf0b69624f33d859e9b
post_install() {
vsv ofonod
}
ofono-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}