# Template file for 'cool-retro-term'
pkgname=cool-retro-term
version=1.1.1
revision=1
build_style=qmake
hostmakedepends="automake qt5-qmake qt5-declarative-devel"
makedepends="qt5-devel qt5-declarative-devel"
depends="qt5-graphicaleffects qt5-quickcontrols qmltermwidget qt5-plugin-sqlite"
short_desc="Good looking terminal emulator which mimics the old cathode display"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/Swordfish90/cool-retro-term"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=1252bafa33c8befbb86528ed75db98677cdc1298704db728e326ffd258d5ed13

# Liberation
post_patch() {
	# Following commands has been taken from:
	# https://git.parabola.nu/abslibre.git/tree/libre/cool-retro-term/PKGBUILD
	# To remove nonfree fonts
	rm -rv app/qml/fonts/{1977-{apple2,commodore-pet},1982-commodore64}
	sed -i '/1977-apple2/d
			/1977-commodore-pet/d
			/1982-commodore64/d
			/modern-envy-code-r/d
			' app/qml/resources.qrc
}

pre_configure() {
	sed -i '/qmltermwidget/d' cool-retro-term.pro
}
