From 97dc30a95502750adfd15b700d4a719e3d1404a2 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.rc9i --- .../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..eab316f661a --- /dev/null +++ b/srcpkgs/KITScenarist/template @@ -0,0 +1,32 @@ +# Template file for 'KITScenarist' +pkgname=KITScenarist +version=0.7.2.rc9i +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=c5fcc30498eeeecc7272c238200fd9a78d6b897c2d5ee9eb6c067a88bbc3ca52 + +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 +}