void-packages/srcpkgs/vapoursynth-editor/template

42 lines
1.1 KiB
Bash
Raw Normal View History

# 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 <void.directorx@protonmail.com>"
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/
}