# Contributor: Kay Thomas <kaythomas@pm.me>
# Maintainer: Kay Thomas <kaythomas@pm.me>
pkgname=cool-retro-term
pkgver=1.1.1
pkgrel=2
pkgdesc="Terminal emulator which mimics old cathode displays"
url="https://github.com/Swordfish90/cool-retro-term"
# qt5-qtquickcontrols and qt5-qtgraphicaleffects not packaged for armhf
arch="all !armhf"
license="GPL-3.0-or-later"
depends="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtquickcontrols
	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="
59da4b5d18ad64b917caebbc63ea9e3d562ed2a2dc9eae00f36cf434df44d17adca084b448f860f24a74ee6b59cd083d6a81e2217df1fb5e9f2731eaf1752148  cool-retro-term-1.1.1.tar.gz
"
