Skip to content

Commit

Permalink
New package: KITScenarist-0.7.2.rc9f
Browse files Browse the repository at this point in the history
  • Loading branch information
abenson committed Jan 4, 2020
1 parent c10c6cb commit a9a56e0
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
7 changes: 7 additions & 0 deletions srcpkgs/KITScenarist/files/scenarist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-kit-scenarist-project">
<comment>KIT Scenarist Project</comment>
<glob pattern="*.kitsp"/>
</mime-type>
</mime-info>
19 changes: 19 additions & 0 deletions srcpkgs/KITScenarist/patches/use-system-hunspell.patch
Original file line number Diff line number Diff line change
@@ -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
#

##
44 changes: 44 additions & 0 deletions srcpkgs/KITScenarist/template
Original file line number Diff line number Diff line change
@@ -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 <abenson+void@gmail.com>"
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
}

0 comments on commit a9a56e0

Please sign in to comment.