pmaports/main/telepathy-qt/APKBUILD
2019-09-14 06:42:50 +02:00

45 lines
1.6 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
# Git version to have Python 3 support, not needed once 0.9.8 is released
pkgname=telepathy-qt
pkgver=0.9.7_git20190902
pkgrel=0
_commit="46bfa4ed74e0952c847ff0ea0087635af408d564"
arch="all"
url="http://telepathy.freedesktop.org/wiki/"
license="LGPL-2.1-or-later"
pkgdesc="A library for Qt-based Telepathy clients"
depends_dev="telepathy-farstream-dev telepathy-glib-dev gstreamer-dev"
makedepends="$depends_dev cmake python3 qt5-qttools-dev dbus doxygen"
#source="https://telepathy.freedesktop.org/releases/telepathy-qt/telepathy-qt-$pkgver.tar.gz"
source="$pkgname-$_commit.tar.gz::https://github.com/TelepathyIM/telepathy-qt/archive/$_commit.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
options="!check" # failing on armhf
builddir="$srcdir/$pkgname-$_commit"
build() {
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DDESIRED_QT_VERSION=5 \
-DENABLE_EXAMPLES=OFF \
-DENABLE_TESTS=TRUE
make
doxygen doxygen.cfg
}
check() {
# BaseConnectionManager requires jabber support
# BaseProtocol is broken
CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "Base(ConnectionManager|Protocol)"
}
package() {
DESTDIR="$pkgdir" make install
install -d "$pkgdir"/usr/share/doc/$pkgname
cp -r doc/html "$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="c39b5d0f4fed2549ce3bdce4dc327ca8cbaff0ff74a2f029df1431a2bfcc791c5c0adfd8ea33bc49042360301575e6fc6f1c61bd24d060da31741a8c1a78c59b telepathy-qt-46bfa4ed74e0952c847ff0ea0087635af408d564.tar.gz"