# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libresourceqt
pkgver=1.31.0
pkgrel=1
pkgdesc="Nemo's libresourceqt"
url="https://github.com/sailfishos/libresourceqt"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	libresource-dev
	qt5-qtbase-dev
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/sailfishos/libresourceqt/archive/$pkgver/libresourceqt-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="
8483b98fd5cda59f42d01798241551b11ce4df11972145985846c03b0a659b6aecb4be13ca06e0dd0a889614aa29653c006be3148861851b641cfe6bcae05f2f  libresourceqt-1.31.0.tar.gz
"
