# Maintainer: Jake # Contributor: Spike29 # Contributor: Samir Faci # Contributor: Timothée Ravier pkgname='qxmpp' pkgver='1.0.1' pkgrel=1 pkgdesc='Cross-platform C++ XMPP client and server library' arch=('i686' 'x86_64') url='https://github.com/qxmpp-project/qxmpp' license=('LGPL2.1') depends=('qt5-base') makedepends=('cmake') optdepends=('doxygen: required to build the HTML documentation' 'opus: required to enable opus audio codec' 'speex: required to enable speex audio codec' 'libvpx: required to enable vpx video codec' 'libtheora: required to enable theora video codec') conflicts=('qxmpp-qt5') source=("${url}/archive/v${pkgver}.tar.gz") sha1sums=('3bb69cb1f1d5229ef2b2b4b73b3c352359e71753') build() { cd "$srcdir/$pkgname-$pkgver/" [ -d build ] || mkdir build && cd build # In order to build the HTML documentation (requires doxygen) # add BUILD_DOCUMENTATION to CMake arguments # In order to enable opus & speex audio codecs, and vpx & theora video codecs, # add WITH_OPUS, WITH_SPEEX, WITH_THEORA, WITH_VPX to CMake arguments cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .. make } package() { cd "$srcdir/$pkgname-$pkgver/build" make DESTDIR="$pkgdir" install }