void-packages/srcpkgs/pidgin/template
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```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

97 lines
2.9 KiB
Bash

# Template file for 'pidgin'
pkgname=pidgin
version=2.13.0
revision=3
build_style=gnu-configure
configure_args="--disable-schemas-install --disable-meanwhile
--enable-cyrus-sasl --disable-doxygen --enable-nm --enable-vv
--with-system-ssl-certs=/etc/ssl/certs --disable-tk --disable-tcl
--disable-gnutls --disable-perl
--with-ncurses-headers=${XBPS_CROSS_BASE}/usr/include
--with-avahi-client-includes=${XBPS_CROSS_BASE}/usr/include
--with-avahi-client-libs=${XBPS_CROSS_BASE}/usr/lib"
short_desc="Multi-protocol instant messaging client"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://pidgin.im/"
distfiles="${SOURCEFORGE_SITE}/pidgin/pidgin-${version}.tar.bz2"
checksum=2747150c6f711146bddd333c496870bfd55058bab22ffb7e4eb784018ec46d8f
python_version=2 #unverified
lib32disabled=yes
hostmakedepends="pkg-config intltool automake libtool gettext gettext-devel glib-devel"
makedepends="libglib-devel gtk+-devel libXext-devel
libXScrnSaver-devel gtkspell-devel startup-notification-devel ncurses-devel
libxml2-devel gst-plugins-base1-devel libidn-devel python-devel
avahi-glib-libs-devel dbus-glib-devel NetworkManager-devel nss-devel
libsasl-devel libSM-devel farstream-devel"
depends="cyrus-sasl-modules gst-plugins-good1"
CFLAGS="-Wno-deprecated-declarations"
pre_configure() {
autoreconf -fi
}
post_install() {
rm -rf ${DESTDIR}/etc/gconf
}
libpurple_package() {
short_desc="IM library extracted from Pidgin"
pkg_install() {
vmove "usr/bin/purple-*"
vmove "usr/lib/libpurple*.so.*"
vmove usr/lib/purple-2
vmove usr/share/sounds/purple
}
}
libpurple-devel_package() {
depends="libglib-devel libpurple>=${version}_${revision}"
short_desc="IM library extracted from Pidgin - development files"
pkg_install() {
vmove usr/include/libpurple
vmove usr/lib/pkgconfig/purple.pc
vmove usr/lib/libpurple*.so
vmove usr/share/aclocal/purple.m4
}
}
libgnt_package() {
short_desc="IM library extracted from Pidgin (GNT)"
pkg_install() {
vmove "usr/lib/libgnt*.so*"
vmove usr/lib/finch
vmove usr/lib/gnt
}
}
libgnt-devel_package() {
depends="libglib-devel libgnt>=${version}_${revision}"
short_desc="IM library extracted from Pidgin (GNT) - development files"
pkg_install() {
vmove usr/include/gnt
vmove usr/lib/pkgconfig/gnt.pc
vmove usr/lib/libgnt.so
}
}
finch_package() {
short_desc="Ncurses-based messaging client"
pkg_install() {
vmove usr/bin/finch
vmove usr/share/man/man1/finch.1
}
}
finch-devel_package() {
depends="libgnt-devel>=${version} libpurple-devel>=${version}_${revision}"
short_desc="Ncurses-based messaging client - development files"
pkg_install() {
vmove usr/include/finch
vmove usr/lib/pkgconfig/finch.pc
}
}
pidgin-devel_package() {
depends="gtk+-devel libpurple-devel>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}