aboutsummaryrefslogtreecommitdiffstats
path: root/community/choqok/APKBUILD
blob: ca9d35d9d81069291aa358177b490d45648e0251 (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=choqok
pkgver=1.7.0
pkgrel=1
pkgdesc="A micro-blogging client"
url="https://choqok.kde.org/"
arch="all !armhf"
license="GPL-2.0-only OR GPL-3.0-only"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtnetworkauth-dev
	kconfigwidgets-dev kcoreaddons-dev kdoctools-dev ki18n-dev kemoticons-dev
	kglobalaccel-dev kguiaddons-dev kcmutils-dev kio-dev knotifications-dev
	knotifyconfig-dev sonnet-dev ktextwidgets-dev kwallet-dev kwidgetsaddons-dev
	kxmlgui-dev purpose-dev qca-dev kparts-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/choqok/${pkgver%.*}/src/choqok-$pkgver.tar.xz"

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 --build build --target install

	mkdir -p "$pkgdir"/usr/lib
	mv "$pkgdir"/usr/share/cmake "$pkgdir"/usr/lib
}

sha512sums="6f5998078e555f7b4a40270ad0a4defa2d15bb8440b810320fc4cfc38d78cb34bb9b2f6a38eb33eb3217b51a78a7fbc7f79224cd0ddb0fcbf8c9035d8e600e96  choqok-1.7.0.tar.xz"