aboutsummaryrefslogtreecommitdiffstats
path: root/community/koko/APKBUILD
blob: cc48ea7f180c76ca28dc41e0fdc0fe147e8d2eaf (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
71
72
73
74
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=koko
pkgver=21.05
pkgrel=1
_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
	0001-fix-sidebar-on-mobile.patch
	0002-only-scroll-vertically.patch
	"
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="
f3056c59416460aba1dd6b170dbd8c4e549f798da0004f8e706aaa691ec690018317b6a51ca10d9d70e3458009f1358b764116f15f534bae81b770eecd6cfeb5  koko-21.05.tar.xz
07485983a5ce0f03f1e12e64c280abe01e81beaa22b2dd43bc1b0e7632298acbfb83f09ef8c01a0915481c8e918a430b97d68f1ed5d43f76506798245345bc14  geonames-2020.06.25.tar.gz
398ecc3f1efaeee17a801ff23b3322c4256ccaa7e0e6d716ca7dcd6857d806050048e8272691d09228485083f4bb372f9fc8f0e357c39ea0d5e5d1475932d23c  0001-fix-sidebar-on-mobile.patch
70a8217cc30204646641758d3d5592e1d423540cd64e7f6831b2fd58e92ceb09f5a73b615ff525d4f48f950b29a13201deaeeb2dc72ad8b284a2a80c803a71b9  0002-only-scroll-vertically.patch
"