From e91d270ed534aac135effacee183f1a94d47dbb4 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Tue, 23 Apr 2019 23:27:31 -0500 Subject: [PATCH] New package: KITScenarist-0.7.2.rc9h --- .../patches/use-system-hunspell.patch | 25 +++++++++++++++ srcpkgs/KITScenarist/template | 32 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 srcpkgs/KITScenarist/patches/use-system-hunspell.patch create mode 100644 srcpkgs/KITScenarist/template diff --git a/srcpkgs/KITScenarist/patches/use-system-hunspell.patch b/srcpkgs/KITScenarist/patches/use-system-hunspell.patch new file mode 100644 index 00000000000..4577f808d6b --- /dev/null +++ b/srcpkgs/KITScenarist/patches/use-system-hunspell.patch @@ -0,0 +1,25 @@ +--- src/bin/scenarist-desktop.pro.orig ++++ src/bin/scenarist-desktop.pro +@@ -37,11 +37,7 @@ + # + # Подключаем библиотеку HUNSPELL + # +-LIBS += -L$$DESTDIR/../../libs/hunspell/ -lhunspell +- +-INCLUDEPATH += $$PWD/../libs/hunspell/src +-DEPENDPATH += $$PWD/../libs/hunspell +-PRE_TARGETDEPS += $$PWD/../libs/hunspell ++LIBS=-lhunspell + # + + ## +--- src/libs/libs.pro.orig ++++ src/libs/libs.pro +@@ -11,7 +11,6 @@ + # + + SUBDIRS = \ +- hunspell \ + fileformats \ + webloader \ + mythes \ diff --git a/srcpkgs/KITScenarist/template b/srcpkgs/KITScenarist/template new file mode 100644 index 00000000000..7cc4d1d0b00 --- /dev/null +++ b/srcpkgs/KITScenarist/template @@ -0,0 +1,32 @@ +# Template file for 'KITScenarist' +pkgname=KITScenarist +version=0.7.2.rc9h +revision=1 +create_wrksrc=yes +build_wrksrc="src" +build_style=qmake +hostmakedepends="pkg-config curl qt5-host-tools + qt5-multimedia-devel qt5-svg-devel qt5-webengine-devel qt5-declarative-devel + qt5-webchannel-devel qt5-location-devel" +makedepends="hunspell-devel qt5-location-devel qt5-multimedia-devel qt5-svg-devel + qt5-webengine-devel qt5-declarative-devel qt5-webchannel-devel qt5-location-devel" +short_desc="Screenwriting software" +maintainer="Andrew Benson " +license="GPL-3.0-or-later" +homepage="https://kitscenarist.ru/en/index.html" +distfiles="https://github.com/dimkanovikov/KITScenarist/releases/download/${version}/src.tar.gz" +checksum=592380eb8b5789e292159106b5efbd882b27f9b416dd03a3426ac8f637cb5971 + +case "$XBPS_TARGET_MACHINE" in + arm*) + broken="webengine not available for arm" ;; + ppc|ppc-musl) + broken="webengine not available for ppc32" ;; + *) if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then + broken="webengine missing unless word size matches" + fi;; +esac + +do_install() { + vbin ../build/Release/bin/scenarist-desktop/Scenarist +}