# Maintainer: Jerome Leclanche <jerome@leclan.ch>

pkgname=qterminal
pkgver=0.14.1
pkgrel=1
pkgdesc="A lightweight Qt-based terminal emulator"
arch=("x86_64")
groups=("lxqt")
url="https://lxqt.org"
license=("GPL2")
depends=("hicolor-icon-theme" "qtermwidget" "qt5-x11extras")
makedepends=("cmake" "lxqt-build-tools")
source=(
	"https://github.com/lxqt/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz"{,.asc}
)
sha256sums=('e018ece0bd38124a2879a6fbb76dd6b9d70ae2b231845650ad363eeca756fe31'
            'SKIP')
validpgpkeys=(
	"169704C6FB490C6892C7F23C37E0AF1FDA48F373"  # Jerome Leclanche <jerome@leclan.ch>
	"7C733BA5F585AAD669E4D23A42C9C8D3AF5EA5E3"  # Alf Gaida <agaida@siduction.org>
)


build() {
	mkdir -p build
	cd build

	cmake "$srcdir/$pkgname-$pkgver" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}
