From 20f7cd8ee24bc0bfcd578c7e71f926adfc4cea17 Mon Sep 17 00:00:00 2001 From: DirectorX Date: Sat, 10 Jun 2017 22:24:54 +0300 Subject: [PATCH] New package: vapoursynth-editor-r16 Closes: #6663 [via git-merge-pr] --- .../files/vapoursynth-editor.desktop | 11 +++++ srcpkgs/vapoursynth-editor/template | 41 +++++++++++++++++++ srcpkgs/vapoursynth-editor/update | 3 ++ 3 files changed, 55 insertions(+) create mode 100644 srcpkgs/vapoursynth-editor/files/vapoursynth-editor.desktop create mode 100644 srcpkgs/vapoursynth-editor/template create mode 100644 srcpkgs/vapoursynth-editor/update diff --git a/srcpkgs/vapoursynth-editor/files/vapoursynth-editor.desktop b/srcpkgs/vapoursynth-editor/files/vapoursynth-editor.desktop new file mode 100644 index 0000000000..fd1efcf848 --- /dev/null +++ b/srcpkgs/vapoursynth-editor/files/vapoursynth-editor.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=VapourSynth Editor +GenericName=vapoursynth-editor +Comment="A cross-platform editor for VapourSynth script" +Icon=vsedit +MimeType=text/x-vpy; +Exec="/usr/bin/vsedit" %f +Terminal=false +Categories=AudioVideo;IDE; +StartupNotify=false diff --git a/srcpkgs/vapoursynth-editor/template b/srcpkgs/vapoursynth-editor/template new file mode 100644 index 0000000000..021caabd27 --- /dev/null +++ b/srcpkgs/vapoursynth-editor/template @@ -0,0 +1,41 @@ +# Template file for 'vapoursynth-editor' +pkgname=vapoursynth-editor +version=r16 +revision=1 +_bitbucket_hash=3a304dd94528 +wrksrc="mystery_keeper-${pkgname}-${_bitbucket_hash}" +build_style=qmake +hostmakedepends="qt5-qmake" +makedepends="vapoursynth-devel qt5-devel" +depends="vapoursynth" +short_desc="A cross-platform editor for VapourSynth script" +maintainer="DirectorX " +license="MIT" +homepage="https://bitbucket.org/mystery_keeper/vapoursynth-editor" +distfiles="${homepage}/get/${version}.tar.gz" +checksum=e32dc3d425f8680b957fbd3427db6e4061fd1a2414db410ee75f2945aea00109 + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools qt5-devel" +fi + +post_extract() { + cp pro/* . + # project file fixes + sed -i 's/\.\.\///' pro.pro + sed -i 's/\.\.\$/.\//' pro.pro + if [ "$ARCH" = "i686" ]; then + sed -i 's/TARGET = vsedit-32bit/TARGET = vsedit/' pro.pro + fi +} + +do_install() { + find ./ -type f -executable | while read _executable + do + vbin "${_executable}" + done + vlicense LICENSE + vinstall ${FILESDIR}/vapoursynth-editor.desktop 644 usr/share/applications/ + vinstall resources/vsedit.svg 644 usr/share/pixmaps/ +} + diff --git a/srcpkgs/vapoursynth-editor/update b/srcpkgs/vapoursynth-editor/update new file mode 100644 index 0000000000..d1baf73add --- /dev/null +++ b/srcpkgs/vapoursynth-editor/update @@ -0,0 +1,3 @@ +site='https://bitbucket.org/mystery_keeper/vapoursynth-editor/downloads/?tab=tags' +pattern='/get/\K[\d.]+(?=\.tar\.gz)' +