# Contributor: omni <omni@gitlab.alpinelinux.org>
# Maintainer: omni <omni@gitlab.alpinelinux.org>
pkgname=kristall
pkgver=0.4
pkgrel=0
pkgdesc="Qt small-internet client for gemini, gopher, finger and http(s)"
url="https://kristall.random-projects.net/"
# armhf: missing qt5-qtdeclarative
arch="all !armhf"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="coreutils
	qt5-qtbase-dev
	qt5-qtmultimedia-dev
	qt5-qtsvg-dev
	qt5-qttools-dev
	"
options="!check" # no test suite
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/MasterQ32/kristall/archive/refs/tags/V$pkgver.tar.gz
	set-kristall-version.patch
	"

build() {
	export pkgver # for set-kristall-version.patch
	make QMAKE_COMMAND=qmake-qt5
}

package() {
	make QMAKE_COMMAND=qmake-qt5 install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="
f0355db2dfee4e40b532835fc4d511ac19d88751a42e7cf5d8a21b6c8a9468274613d717a83fa9aef230180fe9314e3bc8ef4482fb1aff8867f8d1d24caa6e6b  kristall-0.4.tar.gz
4b7cd03af976a04ae2ec03db1f07a4b5a8842306a2a2620b5d328d64cb57f53b19c3909bc757fc8008ac93819f8fae3eadf1955128835a61170c7cda83d96695  set-kristall-version.patch
"
