aboutsummaryrefslogtreecommitdiffstats
path: root/community/subtitlecomposer/APKBUILD
blob: 1d1a736701379366e8a6f0fbc7d56cb72ecb8e89 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=subtitlecomposer
pkgver=0.7.1
pkgrel=1
# armhf blocked by extra-cmake-modules
# s390x, armv7, riscv64 and aarch64 blocked by OpenGLES
arch="all !armhf !s390x !armv7 !aarch64 !riscv64"
url="https://subtitlecomposer.kde.org/"
pkgdesc="The open source text-based subtitle editor"
license="GPL-2.0-only"
makedepends="
	extra-cmake-modules
	ffmpeg-dev
	kauth-dev
	kcodecs-dev
	kconfig-dev
	kconfigwidgets-dev
	kcoreaddons-dev
	ki18n-dev
	kio-dev
	kross-dev
	ktextwidgets-dev
	kwidgetsaddons-dev
	kxmlgui-dev
	openal-soft-dev
	qt5-qtbase-dev
	sonnet-dev
	"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/subtitlecomposer/subtitlecomposer-$pkgver.tar.xz"
subpackages="$pkgname-lang"

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 xvfb-run ctest
}

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

sha512sums="
b486a1be8b414409af4ec2d2ccc86a7e9f34040f114b0efbbf817b5157d85b5f9a37d80272b468a389128f10c12316bf028dd86e2a7434a2b001bfd185208b92  subtitlecomposer-0.7.1.tar.xz
"