aboutsummaryrefslogtreecommitdiffstats
path: root/community/plasmatube/APKBUILD
blob: 1843fbe9c5104afe579a27faafdbdbb414e89a01 (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
51
52
53
54
# Contributor: Ralf Rachinger <ralfrachinger@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasmatube
pkgver=0_git20210530
pkgrel=0
_commit="7427989bbe4e0356a8355103f3bcb883a09a7de7"
pkgdesc="Kirigami YouTube video player based on Invidious"
# armhf blocked by extra-cmake-modules
# mips64, s390x and riscv64 blocked by polkit
arch="all !armhf !s390x !mips64 !riscv64"
url="https://invent.kde.org/plasma-mobile/plasmatube"
license="GPL-3.0-or-later AND CC0-1.0"
depends="
	gst-libav
	gst-plugins-good
	gst-plugins-good-qt
	kcoreaddons
	kdeclarative
	ki18n
	kirigami2
	qt5-qtmultimedia
	qt5-qtquickcontrols2
	"
makedepends="
	extra-cmake-modules
	ki18n-dev
	kirigami2-dev
	qt5-qtbase-dev
	qt5-qtquickcontrols2-dev
	"
source="https://invent.kde.org/plasma-mobile/plasmatube/-/archive/$_commit/plasmatube-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="
614ac9fdd0a0fcdff976bfaeeb0870cebff34baec231b55fd3212d6d6e964ac495ce626e3b43447de0a9b881b6ce08b7fd4e7d335c2ccdadcf3d1f43f94f06dd  plasmatube-7427989bbe4e0356a8355103f3bcb883a09a7de7.tar.gz
"