# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=pidgin-otr
pkgver=4.0.2
pkgrel=1
pkgdesc="Enables encrypted, secure messaging in Pidgin IM"
url="https://otr.cypherpunks.ca/"
arch="all"
license="GPL-2.0-only"
depends=""
makedepends="intltool libotr-dev pidgin-dev"
subpackages=""
source="https://otr.cypherpunks.ca/pidgin-otr-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

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

sha512sums="6815f1d2be5786726602a924ae6ead5371543a53bd36231dc3239fa580f73a6136836df0c1beb64d83b76e6bd0d80ffe6750ca6e9ddd2a6a94841a9a678925ad  pidgin-otr-4.0.2.tar.gz"