aboutsummaryrefslogtreecommitdiffstats
path: root/community/libktorrent/APKBUILD
blob: 39c6f848043ae4ceb6eea913ee2a48c967031f1d (plain)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libktorrent
pkgver=2.1.1
_ktorrentver=5.1.2 # $_ktorrentver=ktorrent-$pkgver
pkgrel=2
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://kde.org/applications/internet/org.kde.ktorrent"
pkgdesc="A powerful BitTorrent client for KDE"
license="GPL-2.0-or-later"
depends_dev="qt5-qtbase-dev karchive-dev kcrash-dev ki18n-dev kio-dev solid-dev boost-dev gmp-dev qca-dev"
makedepends="$depends_dev extra-cmake-modules doxygen graphviz"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/ktorrent/$_ktorrentver/libktorrent-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"

prepare() {
	default_prepare

	mkdir "$builddir"/build
}

build() {
	cd "$builddir"/build
	cmake "$builddir" \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
	make docs
}

check() {
	cd "$builddir"/build
	# utppolltest is broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "utppolltest"
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install

	mkdir -p "$pkgdir"/usr/share/doc
	mv apidocs/html "$pkgdir"/usr/share/doc/HTML
}

sha512sums="5c7f0218193cae148b03ae86a886b89d08a46200755728468ef271a6201add88eca617898d486d1823699def282d0251e26e3b28d2642f45cab966c286127d37  libktorrent-2.1.1.tar.xz"