# Template file for 'notepadqq'
pkgname=notepadqq
version=1.0.1
revision=1
_Code_commit=d790fc39c1a5f06aa66415110b8ebe3026df665a
build_style=qmake
hostmakedepends="pkg-config qt5-tools qt5-svg-devel qt5-webkit-devel"
makedepends="qt5-svg-devel qt5-webkit-devel"
depends="desktop-file-utils hicolor-icon-theme"
maintainer="cr6git <quark6@protonmail.com>"
short_desc="Text editor for developers"
homepage="http://notepadqq.altervista.org/s/"
license="GPL-3"
distfiles="https://github.com/notepadqq/notepadqq/archive/v${version}.tar.gz
	https://github.com/notepadqq/CodeMirror/archive/${_Code_commit}.tar.gz"
checksum="361ff29e1ef0dbe70e23b7fc1905da5cd163164d3e0a0bb020ecc5bdc5cf6a80
 f3b23a367f9070d19bbc3d2d48dab4839b436ada15f2b26f1b4a7a599883642c"
create_wrksrc=yes
build_wrksrc="notepadqq-${version}"

post_extract() {
	mv -Tv CodeMirror-${_Code_commit} ${build_wrksrc}/src/editor/libs/codemirror
}

