# Contributor: Kay Thomas <kaythomas@pm.me>
# Maintainer: Kay Thomas <kaythomas@pm.me>
pkgname=cool-retro-term
pkgver=1.2.0
pkgrel=0
pkgdesc="Terminal emulator which mimics old cathode displays"
url="https://github.com/Swordfish90/cool-retro-term"
arch="all"
license="GPL-3.0-or-later"
depends="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtquickcontrols
	qt5-qtquickcontrols2-dev qt5-qtgraphicaleffects qmltermwidget"
source="$pkgname-$pkgver.tar.gz::https://github.com/Swordfish90/cool-retro-term/archive/$pkgver.tar.gz"
options="!check" # No testsuite

prepare() {
	default_prepare
	# Taken from Arch Linux
	# Remove qmltermwidget from source so the system one is used instead
	sed -i '/qmltermwidget/d' cool-retro-term.pro
}

build() {
	qmake-qt5
	make
}

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

sha512sums="
21d3551d429380b026f8003652d78d186e5ac7079d3f143fe7f8f0c57876df263e5c40f218577ef236da859e779699f766414949591ecab38921caec5fd59209  cool-retro-term-1.2.0.tar.gz
"
