aboutsummaryrefslogtreecommitdiffstats
path: root/community/koko/APKBUILD
blob: ea3b8e407b017cba066d684b10d53100860d3412 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=koko
pkgver=21.06
pkgrel=0
_geonames_pkgver=2020.06.25
pkgdesc="Image gallery application for Plasma Mobile"
url="https://invent.kde.org/graphics/koko"
# armhf blocked by qt5-qtdeclarative
# s390x and mips64 blocked by kdeclarative
arch="all !armhf !s390x !mips64"
license="LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-3.0-only AND LicenseRef-KDE-Accepted-GPL"
depends="
	kdeclarative
	kirigami2
	kquickimageeditor
	purpose
	qt5-qtbase-sqlite
	"
makedepends="
	exiv2-dev
	extra-cmake-modules
	kconfig-dev
	kcoreaddons-dev
	kdeclarative-dev
	kfilemetadata-dev
	kguiaddons-dev
	ki18n-dev
	kio-dev
	knotifications-dev
	kquickimageeditor-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtlocation-dev
	"
subpackages="$pkgname-lang"
source="https://download.kde.org/stable/plasma-mobile/$pkgver/koko-$pkgver.tar.xz
	https://github.com/pmsourcedump/geonames/archive/$_geonames_pkgver/geonames-$_geonames_pkgver.tar.gz
	"
options="!check" # Broken tests

prepare() {
	default_prepare

	mv "$srcdir"/geonames-$_geonames_pkgver/cities1000.zip src/
	mv "$srcdir"/geonames-$_geonames_pkgver/admin1CodesASCII.txt src/
	mv "$srcdir"/geonames-$_geonames_pkgver/admin2Codes.txt src/
}

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 --install build
}

sha512sums="
30b9d27cc0da65eb9373f1a511fdaf8511efd32220e16305dc08788d003eb7c09c4a0fc8d39be5b100f9f69c74fff1a483e1c7981d651ca090bb05e603e89038  koko-21.06.tar.xz
07485983a5ce0f03f1e12e64c280abe01e81beaa22b2dd43bc1b0e7632298acbfb83f09ef8c01a0915481c8e918a430b97d68f1ed5d43f76506798245345bc14  geonames-2020.06.25.tar.gz
"