# Maintainer: Jonathan Sieber pkgname=toxcore pkgver=0.2.11 pkgrel=0 pkgdesc="Tox communication project - Core Library" url="https://tox.chat/" arch="all" license="GPL-3.0-or-later" makedepends="linux-headers cmake libsodium-dev opus-dev libvpx-dev" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/TokTok/c-toxcore/archive/v$pkgver.tar.gz" # Toxcore's tests do require networking and are not working properly in Travis-CI options="!check" builddir="$srcdir/c-$pkgname-$pkgver" build() { cmake . \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { make test } package() { make DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/*.a } sha512sums="616b30423a170463b4445f6940e038fd9af820946c970260fcf72cc54d08d2615364b9f086869180e3ae26154ea92fea6e9a602366306bc40c3e1575e86350df toxcore-0.2.11.tar.gz"