# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'jreen'
setvar pkgver = '1.3.0'
setvar pkgrel = '0'
setvar pkgdesc = ""Free and Opensource Jabber library, written in C++ using cross-platform framework Qt.""
setvar url = ""http://qutim.org/jreen""
setvar arch = ""all""
setvar license = ""GPL2""
setvar depends = """"
setvar depends_dev = ""qt-dev speex-dev libgsasl-dev""
setvar makedepends = ""$depends_dev cmake""
setvar subpackages = ""$pkgname-dev""
setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/euroelessar/jreen/archive/v$pkgver.tar.gz""

setvar builddir = ""$srcdir"/$pkgname-$pkgver"
proc build {
	mkdir -p "$builddir"/build
	cd "$builddir"/build
	cmake $builddir \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

proc package {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

setvar sha512sums = ""7b8267aa7d0e18c28dfeb6a1c7c0495d87bd2712fe10a0c6283f0cf89b72d2c67f98f97a812c9f34496af43eb00ddd94b7e60e942634fb03d0119f94a3d08464  jreen-1.3.0.tar.gz""