void-packages/srcpkgs/texstudio/template
2017-01-25 20:17:06 +01:00

41 lines
1.2 KiB
Bash

# Template file for 'texstudio'
pkgname=texstudio
version=2.12.2
revision=1
build_style=qmake
short_desc="Powerful Tex/LaTeX editor based on texmaker"
maintainer="Piraty <Piraty@users.noreply.github.com>"
license="GPL-3"
homepage="http://texstudio.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/TeXstudio%20${version}/${pkgname}-${version}.tar.gz"
checksum=3ffdaf0a3cb8bb9801e68ecba7641778b94121b4320de8751b79f2d8718cdcb1
wrksrc="${pkgname}${version}"
hostmakedepends="pkg-config qt5-qmake"
makedepends="qt5-webkit-devel qt5-svg-devel qt5-script-devel qt5-tools-devel"
depends="qt5-svg"
build_options_default="phonon"
configure_args="-unix"
configure_args+=" -spec linux-g++"
configure_args+=" NO_TESTS=true"
configure_args+=" CONFIG-=debug CONFIG-=debug_and_release CONFIG+=release"
build_options="phonon"
desc_option_phonon="build with phonon support"
if [ "$build_option_phonon" ]; then
configure_args+=" PHONON=true"
makedepends+=" phonon-qt5-devel"
fi
build_options+=" nopoppler"
desc_option_nopoppler="build without poppler (= no internal pdf preview)"
if [ "$build_option_nopoppler" ]; then
configure_args+=" NO_POPPLER_PREVIEW=true"
else
makedepends+=" poppler-qt5-devel"
fi
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" ${makedepends}"
fi