void-packages/srcpkgs/loudmouth/template
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

35 lines
1 KiB
Bash

# Template file for 'loudmouth'
pkgname=loudmouth
version=1.5.3
revision=12
build_style=gnu-configure
configure_args="--with-ssl=openssl --with-asyncns --with-compile-warnings=no"
hostmakedepends="pkg-config automake libtool glib-devel gtk-doc"
makedepends="libglib-devel libidn-devel openssl-devel"
short_desc="Lightweight Jabber client library written in C/Glib"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/mcabber/loudmouth"
distfiles="https://github.com/mcabber/${pkgname}/archive/${version}.tar.gz"
checksum=12972fcffd9bbcc4a3b2b9fbf4b0e549f7b4caf0f11c8d2af2059087ce4e8792
CFLAGS+=" -Wno-deprecated-declarations"
pre_configure() {
# Disable tests
sed -i '/SUBDIRS/s,tests,,g' Makefile.am
gtkdocize
autoreconf -fi
}
loudmouth-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libglib-devel libidn-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}