aboutsummaryrefslogtreecommitdiffstats
path: root/testing/okteta/APKBUILD
blob: 23580c085c75e41576ae8276a656860818112c7e (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=okteta
pkgver=0.26.2
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 \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_DESKTOPPROGRAM=ON
	make
}

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

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="9d79cfecf80a7bfd4eb42ac8ee93d83140064601c16be0bed38481f7f0ea8ed2fa0aedfd16be3547f2bbd65ab483281e0ecdc0e59799040d67ecf1b4cda39246  okteta-0.26.2.tar.xz"