# Contributor: Marvin Steadfast <marvin@xsteadfastx.org>
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
pkgname=bitlbee-facebook
pkgver=1.1.2
pkgrel=1
pkgdesc="Facebook protocol plugin for BitlBee"
url="https://github.com/jgeboski/bitlbee-facebook"
arch="all"
license="GPL"
depends="bitlbee"
makedepends="bitlbee-dev autoconf automake libtool json-glib-dev"
source="https://github.com/jgeboski/bitlbee-facebook/releases/download/v$pkgver/bitlbee-facebook-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	./autogen.sh
}

build() {
	cd "$builddir"
	./configure
	make
}

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

sha512sums="1eb4ec83f1ee1866b6507c2ab856e145e133d0c2f0ff3182f3af93499fbd5db231edbee81c0cfa0c8134cf8ac71d6530a9f1fb85fd73921201bfb9652b8b7fa0  bitlbee-facebook-1.1.2.tar.gz"
