aboutsummaryrefslogtreecommitdiffstats
path: root/community/okteta/APKBUILD
blob: 3b5c5e933ca4e835f3edb6bc4bc9b4717d1e8a9e (plain)
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: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=okteta
pkgver=0.26.3
pkgrel=0
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
url="https://kde.org/applications/utilities/org.kde.okteta"
pkgdesc="KDE hex editor for viewing and editing the raw data of files"
license="(LGPL-2.1-only OR LGPL-3.0-only) AND (GPL-2.0-only OR GPL-3.0-only) AND GFDL-1.2-only"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtscript-dev qt5-qtxmlpatterns-dev qt5-qttools-dev kbookmarks-dev kcompletion-dev kiconthemes-dev kcmutils-dev kio-dev knewstuff-dev kparts-dev kservice-dev kwidgetsaddons-dev kxmlgui-dev kcrash-dev kdbusaddons-dev kdoctools-dev kcodecs-dev kconfigwidgets-dev ki18n-dev qca-dev shared-mime-info"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/okteta/$pkgver/src/okteta-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

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

sha512sums="345e6ebb339a046e66e0d5b056ee487d881afa21d1ed29db2fb213200e431ba6936b1bf75a49733c14c96bdbee2482ed860257b0666b19f701c5ad0fd57e58c6  okteta-0.26.3.tar.xz"