# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=purple-plugin-pack
pkgver=2.7.0
pkgrel=0
pkgdesc="Collection of plugins to enhance Pidgin and Finch"
url="https://bitbucket.org/rekkanoryo/purple-plugin-pack/"
arch="all"
license="GPL-2.0-only"
depends=""
makedepends="gtkspell-dev intltool pidgin-dev"
subpackages="$pkgname-lang"
source="https://bitbucket.org/rekkanoryo/purple-plugin-pack/downloads/purple-plugin-pack-$pkgver.tar.bz2
	python.patch
	"

prepare() {
	default_prepare
	update_config_sub
}

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

check() {
	cd "$builddir"
	make check
}

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

sha512sums="fffe1b8c38bff9ce88ae26426110923cc4722bf77fe59f6cf1123931558b06d830a842a6fe4d4f47295beec12f82cf5c25ac03d84944bb2629423ebac4399caf  purple-plugin-pack-2.7.0.tar.bz2
125f037348d87c0a3401ae154e0982139c56ff91681e7af89da3ad1a253bc42941c39b98395cec72f98eaabc1c38d87bdc1ba1b5484f7ab6a0d7f2b01eb78f4c  python.patch"