From a9a56e0e307630f1832814c8ad3afe3886d16dfb 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.rc9f --- srcpkgs/KITScenarist/files/scenarist.xml | 7 +++ .../patches/use-system-hunspell.patch | 19 ++++++++ srcpkgs/KITScenarist/template | 44 +++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 srcpkgs/KITScenarist/files/scenarist.xml create mode 100644 srcpkgs/KITScenarist/patches/use-system-hunspell.patch create mode 100644 srcpkgs/KITScenarist/template diff --git a/srcpkgs/KITScenarist/files/scenarist.xml b/srcpkgs/KITScenarist/files/scenarist.xml new file mode 100644 index 00000000000..e04d418cbaf --- /dev/null +++ b/srcpkgs/KITScenarist/files/scenarist.xml @@ -0,0 +1,7 @@ + + + + KIT Scenarist Project + + + diff --git a/srcpkgs/KITScenarist/patches/use-system-hunspell.patch b/srcpkgs/KITScenarist/patches/use-system-hunspell.patch new file mode 100644 index 00000000000..10a551840f3 --- /dev/null +++ b/srcpkgs/KITScenarist/patches/use-system-hunspell.patch @@ -0,0 +1,19 @@ +--- KITScenarist-0.7.2.rc9f/src/bin/scenarist-desktop.pro.orig ++++ KITScenarist-0.7.2.rc9f/src/bin/scenarist-desktop.pro +@@ -37,11 +37,12 @@ + # + # Подключаем библиотеку HUNSPELL + # +-LIBS += -L$$DESTDIR/../../libs/hunspell/ -lhunspell ++#LIBS += -L$$DESTDIR/../../libs/hunspell/ -lhunspell ++LIBS += -lhunspell + +-INCLUDEPATH += $$PWD/../libs/hunspell/src +-DEPENDPATH += $$PWD/../libs/hunspell +-PRE_TARGETDEPS += $$PWD/../libs/hunspell ++#INCLUDEPATH += $$PWD/../libs/hunspell/src ++#DEPENDPATH += $$PWD/../libs/hunspell ++#PRE_TARGETDEPS += $$PWD/../libs/hunspell + # + + ## diff --git a/srcpkgs/KITScenarist/template b/srcpkgs/KITScenarist/template new file mode 100644 index 00000000000..7ebb0e45f72 --- /dev/null +++ b/srcpkgs/KITScenarist/template @@ -0,0 +1,44 @@ +# Template file for 'KITScenarist' +pkgname=KITScenarist +version=0.7.2.rc9f +revision=1 +_corever=ad7da9941883cf71edacd85c9a3ffe8885d6b2e9 +create_wrksrc=yes +build_wrksrc="KITScenarist-${version}/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/archive/${version}.tar.gz + https://github.com/dimkanovikov/KITScenaristCore/archive/${_corever}.tar.gz" +checksum="9bb6aea5d48db47a3de0248c5a46cf886ae6414b44475b7c842454f3b09472d3 + ff7f625c856a56509994d72d0db025258c15789a6e47312e72dfe836348bfc0a" + +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 + +pre_configure() { + rmdir bin/scenarist-core + mv ../../KITScenaristCore-${_corever} bin/scenarist-core +} + +do_install() { + vbin ../build/Release/bin/scenarist-desktop/Scenarist + cd $wrksrc/$build_wrksrc/../build/Ubuntu/scenarist_amd64 + vinstall usr/share/applications/scenarist.desktop 0644 usr/share/applications + vinstall usr/share/pixmaps/scenarist.png 0644 usr/share/pixmaps + vinstall $FILESDIR/scenarist.xml 0644 usr/share/mime/packages +}