void-packages/srcpkgs/jreen-qt5/template
2016-11-08 20:13:32 +01:00

32 lines
899 B
Bash

# Template file for 'jreen'
pkgname=jreen-qt5
version=1.2.1
revision=2
wrksrc=${pkgname%-*}-${version}
build_style=cmake
hostmakedepends="pkg-config"
makedepends="gsasl-devel speex-devel qt5-devel zlib-devel"
short_desc="Extensible XMPP library written in C++ using Qt"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-2"
homepage="http://qutim.org/jreen"
distfiles="http://github.com/euroelessar/${pkgname%-*}/archive/v${version}.tar.gz"
checksum=be5de04b6f54e47bdec92707600441a39e46add958181ad2b5b2d1bf92693fbd
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
fi
post_extract() {
sed -i 's|^#include <QMetaTypeId|#include <QMetaType|' src/stanzaextension.h
}
jreen-qt5-devel_package() {
depends="jreen-qt5>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}