diff --git a/srcpkgs/notepadqq/template b/srcpkgs/notepadqq/template new file mode 100644 index 00000000000..34a949d3dd7 --- /dev/null +++ b/srcpkgs/notepadqq/template @@ -0,0 +1,28 @@ +# Template file for 'notepadqq' +pkgname=notepadqq +version=1.0.1 +revision=1 +_Code_commit=d790fc39c1a5f06aa66415110b8ebe3026df665a +build_style=qmake +hostmakedepends="pkg-config qt5-tools" +makedepends="qt5-svg-devel qt5-webkit-devel" +depends="desktop-file-utils hicolor-icon-theme" +maintainer="cr6git " +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="552f274b9c9d3d48e2e55462f33aea8df8ebd0f421b0d7a23b78a46693fbed34 + f3b23a367f9070d19bbc3d2d48dab4839b436ada15f2b26f1b4a7a599883642c" +create_wrksrc=yes +build_wrksrc="notepadqq-${version}" + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-svg-devel qt5-webkit-devel" +fi + +post_extract() { + mv -Tv CodeMirror-${_Code_commit} ${build_wrksrc}/src/editor/libs/codemirror +} +