# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pidgin-otr
pkgver=4.0.2
pkgrel=0
pkgdesc="Off The Record Messaging, an encryption plugin for pidgin to provide secure IM conversations"
url="http://otr.cypherpunks.ca/"
arch="all"
license="LGPL"
depends="pidgin"
makedepends="libotr-dev gtk+-dev intltool pidgin-dev"
install=
subpackages="$pkgname-lang"
source="http://www.cypherpunks.ca/otr/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
        cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="7ef14e1334a4bc80e5d530f9a3cfc626  pidgin-otr-4.0.2.tar.gz"
sha256sums="f4b59eef4a94b1d29dbe0c106dd00cdc630e47f18619fc754e5afbf5724ebac4  pidgin-otr-4.0.2.tar.gz"
sha512sums="6815f1d2be5786726602a924ae6ead5371543a53bd36231dc3239fa580f73a6136836df0c1beb64d83b76e6bd0d80ffe6750ca6e9ddd2a6a94841a9a678925ad  pidgin-otr-4.0.2.tar.gz"
