42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'texstudio'
|
|
pkgname=texstudio
|
|
version=2.12.4
|
|
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=dc4752bd8a1c5249d87ccda780822aba65c59c607419b4cc0c0a788f953b210d
|
|
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
|