summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83437cebe6fdec1a3753619c8712ab20b326b27d (plain)
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
# Maintainer: Integral <integral@murena.io>

pkgname=arianna-git
_pkgname=arianna
pkgver=24.01.90.r54.ge0e9259
pkgrel=1
epoch=1
pkgdesc="EPub Reader for mobile devices"
groups=('kde-applications-git')
url="https://invent.kde.org/graphics/${_pkgname}.git"
depends=('kquickcharts' 'kirigami-addons' 'hicolor-icon-theme' 'qt6-httpserver')
arch=('x86_64')
license=('GPL' 'LGPL' 'MIT' 'BSD')
makedepends=('git' 'extra-cmake-modules' 'kdoctools' 'kfilemetadata' 'qqc2-desktop-style' 'python' 'reuse' 'baloo' 'qt6-websockets' 'qt6-websockets' 'qt6-webengine')
provides=('arianna')
conflicts=('arianna')
source=(git+https://invent.kde.org/graphics/${_pkgname}.git)
sha256sums=('SKIP')

pkgver() {
	cd "${_pkgname}/"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//'
}

prepare() {
	mkdir build/
	sed -i 's/0.10//g' "${_pkgname}/CMakeLists.txt"
}

build() {
	cd build/
	cmake -B build/ -S "../${_pkgname}" -DBUILD_TESTING=OFF
	cmake --build build/
}

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