aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keysmith/APKBUILD
blob: aa45b0156ff85fc0fc2cd8c082dc3825bfe85d81 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname="keysmith"
pkgver="0.1"
pkgrel=1
pkgdesc="OTP client for Plasma Mobile and Desktop"
url="https://invent.kde.org/kde/keysmith"
arch="all !armhf"
license="GPL-3.0-or-later"
depends="kirigami2"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev oath-toolkit-dev kirigami2-dev"
source="https://download.kde.org/stable/keysmith/$pkgver/keysmith-$pkgver.tar.xz"

prepare() {
	default_prepare

	mkdir "$builddir"/build
}

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

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="a381cfe12b98188f58a012ec6a1872dc52ff024b6dd81ebb6e1ba5af5fc7bdcca8231178db7a9290be66d9f24f48fce93080b15a175e50a0b35d0fdf11d10fea  keysmith-0.1.tar.xz"