# Contributor: Marian <marian.buschsieweke@ovgu.de>
# Maintainer: Marian <marian.buschsieweke@ovgu.de>
pkgname=libpurple-carbons
pkgver=0.1.3
pkgrel=0
pkgdesc="Experimental XEP-0280: Message Carbons plugin for libpurple"
url="https://github.com/gkdr/carbons"
arch="all"
license="GPL"
depends="libpurple libpurple-xmpp"
makedepends="glib-dev pidgin-dev libxml2-dev"
subpackages=""
source="${pkgname}-${pkgver}.tar.gz::https://github.com/gkdr/carbons/archive/v${pkgver}.tar.gz"
options="!check"
builddir="${srcdir}/carbons-${pkgver}"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make PURPLE_PLUGIN_DIR="${pkgdir}/usr/lib/purple-2/" install
}

sha512sums="3aacbac2f9326e4e11c06d23da3ef5ef0ceee1c1789b9bdb039d344e94088e9ab35123e099fe75ea5e4f48da1ad4cb3fb048b0705ef1053f712d4875a4c61b51  libpurple-carbons-0.1.3.tar.gz"
