aboutsummaryrefslogtreecommitdiffstats
path: root/community/libktorrent/APKBUILD
blob: f48539b15cea048c964552834845a8e5c2fbb44f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libktorrent
pkgver=20.12.1
pkgrel=1
# armhf blocked by extra-cmake-modules
# mips test failures
arch="all !armhf !mips !mips64 !s390x"
url="https://kde.org/applications/internet/org.kde.ktorrent"
pkgdesc="A powerful BitTorrent client for KDE"
license="GPL-2.0-or-later"
depends_dev="
	boost-dev
	gmp-dev
	karchive-dev
	kcrash-dev
	ki18n-dev
	kio-dev
	qca-dev
	qt5-qtbase-dev
	solid-dev
	"
makedepends="$depends_dev
	doxygen
	extra-cmake-modules
	graphviz
	"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/libktorrent-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	# utppolltest requires network access
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "utppolltest"
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="acec75d797e588e35b8ab60413f452395cebcabaf680261e83270e357ef18ff3e951306bf4d1ab60e79be5dcb5de7479df0535b4ff52318bfd451c483dd500c7  libktorrent-20.12.1.tar.xz"