aboutsummaryrefslogtreecommitdiffstats
path: root/community/kfloppy/APKBUILD
blob: 31b8350dc6c203724c41ea2a5996adbc06dcc22f (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: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kfloppy
pkgver=20.12.1
pkgrel=0
arch="all !armhf !s390x !mips64"
url="https://kde.org/applications/utilities/org.kde.kfloppy"
pkgdesc="A utility that provides a straightforward graphical means to format 3.5\" and 5.25\" floppy disks"
license="GPL-2.0-or-later"
depends="dosfstools e2fsprogs coreutils"
makedepends="extra-cmake-modules qt5-qtbase-dev ki18n-dev kcoreaddons-dev kcompletion-dev kdoctools-dev kxmlgui-dev kcrash-dev kconfig-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/kfloppy-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"
options="!check" # No tests

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
}

sha512sums="e995d96e19f58feccaafdd22a008513a3484b06e03b2e43674d89abb9f04cc2cd7c38bdcd9b9286a457d41d62ddaf241996f3c06573d0b53c3988ef0e844e495  kfloppy-20.12.1.tar.xz"