aboutsummaryrefslogtreecommitdiffstats
path: root/community/attica/APKBUILD
blob: e0506c7b8144c275ac523e62413d7977334cceb7 (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
# Contributor:
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=attica
pkgver=5.78.0
pkgrel=0
pkgdesc="Freedesktop OCS binding for Qt"
url="http://www.kde.org/"
arch="all !armhf" # Blocked by extra-cmake-modules
license="LGPL-2.0-or-later"
makedepends="qt5-qttools-dev extra-cmake-modules doxygen"
options="!check" # failing on builders
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/attica-$pkgver.tar.xz"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="c0d988218ac5bbc5e85815316d545b44325f4592de2b3a5181030804e5c2b898747c1c7e7eff4c93729ea2704b996ae14addf272d08544abdc8f3762fa8fdc98  attica-5.78.0.tar.xz"