aboutsummaryrefslogtreecommitdiffstats
path: root/community/plasma-camera/APKBUILD
blob: 69bc3007d23eb04226aa440a16d145991586ff57 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-camera
pkgver=1.0_git20210328
pkgrel=0
_commit="78c2e161c31b07be15f67c53bb556c3100a956b6"
pkgdesc="Camera application for Plasma Mobile"
# armhf blocked by qt5-qtdeclarative
# mips64 blocked by gst-plugins-bad
arch="all !armhf !mips64"
url="https://invent.kde.org/plasma-mobile/plasma-camera"
license="GPL-3.0-or-later AND BSD-3-Clause"
depends="
	gst-plugins-bad
	gst-plugins-good
	kirigami2
	qt5-qtmultimedia
	"
makedepends="
	extra-cmake-modules
	kcoreaddons-dev
	ki18n-dev
	kirigami2-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	"
checkdepends="appstream"
source="https://invent.kde.org/plasma-mobile/plasma-camera/-/archive/$_commit/plasma-camera-$_commit.tar.gz"
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="6b2c187be65f75481e425a3b499bab01034930ee81d15eb2eef99abaa5bef8e4e911c13ee454737d940413729f1c8a69ba5395ce0e672e20f7708fd8b3c7c43f  plasma-camera-78c2e161c31b07be15f67c53bb556c3100a956b6.tar.gz"