# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=irssi-xmpp
pkgver=0.54
pkgrel=3
pkgdesc="An irssi plugin to connect to the Jabber network"
url="https://github.com/cdidier/irssi-xmpp"
arch="all"
license="GPL-2.0-only"
depends="irssi"
makedepends="irssi-dev loudmouth-dev"
subpackages="$pkgname-doc"
options="!check"
source="https://github.com/cdidier/irssi-xmpp/archive/v$pkgver/irssi-xmpp-$pkgver.tar.gz
	musl-fixes.patch
	irssi-1.3-compat.patch
	g_const_return.patch
	pointer-comparison.patch
	"

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
31ddd9e0147eec23d08b8bcbe242e831d612cb2d00f3b56776e9d0b87db9bd76d4bb147422cdf18c0567f0e0463ab828ab7a0ef80a2b35cfdc0a8be962b39f14  irssi-xmpp-0.54.tar.gz
d75fb0687ab9af9a87409e61605f2bb443729be06fc4d7f9e900783c7b9375efc43acec128c91bdeb2c19983c5bedac567a30042ff28f53e6817e976932de0ef  musl-fixes.patch
1690f7b5ce7c42807c7536b028d23824f27549747b89bded1fede188ddfb9efdd678bf8bfe8f629acc6ad41f716a399e4521f8c889f2b7f568b14ca024048eb4  irssi-1.3-compat.patch
486ee1307eda5dcad221dc1f8518deb6b5c62ba2b4951f0585ee77ccb4a16ebbc317d76390194ddece9a4245e1a3c0f70d0675eaab66eb602725565e027d487e  g_const_return.patch
161a95246e637c0da77ce50b68844fe1c9855fd2329d6f852f928dd579a234d470ca6edd92e3bb26dacbb8c79f3dc72a9a9322e047a14907afee0e6ce93af5b9  pointer-comparison.patch
"
