void-packages/srcpkgs/texstudio/template
2016-12-01 03:47:34 -05:00

39 lines
1.2 KiB
Bash

# Template file for 'texstudio'
pkgname=texstudio
version=2.11.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=02fdd4d1552593ba6ee85965f8043272230fa053b5b8e148405e80547c51d2dc
wrksrc="${pkgname}${version}"
hostmakedepends="pkg-config qt5-qmake"
makedepends="qt5-webkit-devel qt5-svg-devel qt5-script-devel qt5-tools-devel"
depends="qt5-svg"
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