45 lines
1.8 KiB
Text
45 lines
1.8 KiB
Text
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=koko
|
|
pkgver=0_git20200618
|
|
pkgrel=0
|
|
_commit="9f3a802fd86466f0cd4a4de5c7bf3725fc31f4e7"
|
|
_geonames_pkgver=2020.06.25
|
|
pkgdesc="Image gallery application for Plasma Mobile"
|
|
url="https://invent.kde.org/plasma-mobile/koko"
|
|
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
|
|
license="LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-3.0-only AND LicenseRef-KDE-Accepted-GPL"
|
|
depends="kirigami2 kdeclarative purpose qt5-qtbase-sqlite"
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtlocation-dev ki18n-dev kdeclarative-dev kconfig-dev kio-dev kguiaddons-dev kcoreaddons-dev knotifications-dev exiv2-dev"
|
|
source="https://invent.kde.org/plasma-mobile/koko/-/archive/$_commit/koko-$_commit.tar.gz
|
|
https://github.com/pmsourcedump/geonames/archive/$_geonames_pkgver/geonames-$_geonames_pkgver.tar.gz
|
|
"
|
|
options="!check" # Broken tests
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
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 --build build --target install
|
|
}
|
|
|
|
sha512sums="234cc3ce863754752b685a0e871b890a072ea24761f721bddeda1d88451c6e99354c03101c5dd9b180ba2ddb9eab08cbf340a0cd08d551d9c67c3864c3b534af koko-9f3a802fd86466f0cd4a4de5c7bf3725fc31f4e7.tar.gz
|
|
07485983a5ce0f03f1e12e64c280abe01e81beaa22b2dd43bc1b0e7632298acbfb83f09ef8c01a0915481c8e918a430b97d68f1ed5d43f76506798245345bc14 geonames-2020.06.25.tar.gz"
|