PKGBUILDs/community/texstudio/PKGBUILD

57 lines
2.3 KiB
Bash
Raw Normal View History

2016-01-06 04:52:11 +00:00
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Clément DEMOULINS <clement@archivel.fr>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - ARM patch, use NO_CRASH_HANDLER=1 for AArch64
pkgname=texstudio
2018-07-06 18:56:07 +00:00
pkgver=2.12.10
2018-07-07 01:35:18 +00:00
pkgrel=2
2016-01-06 04:52:11 +00:00
pkgdesc="Integrated writing environment for creating LaTeX documents"
2017-12-01 14:46:17 +00:00
arch=('x86_64')
2016-01-06 04:52:11 +00:00
url="http://texstudio.sourceforge.net/"
license=('GPL')
2018-07-07 01:35:18 +00:00
depends=('poppler-qt5' 'qt5-svg' 'qt5-script' 'libxkbcommon-x11' 'hicolor-icon-theme' 'hunspell' 'quazip')
2017-03-30 03:22:40 +00:00
makedepends=('qt5-tools' 'mercurial' 'imagemagick' 'librsvg')
2016-01-06 04:52:11 +00:00
optdepends=('evince: pdf reader'
2016-12-17 16:14:39 +00:00
'okular: alternate pdf reader')
2016-01-06 04:52:11 +00:00
replaces=('texmakerx')
2018-03-05 01:28:30 +00:00
source=("https://github.com/texstudio-org/texstudio/archive/${pkgver}.tar.gz"
2017-08-08 18:39:20 +00:00
fs54269.patch
2017-12-01 14:46:17 +00:00
fs56433.patch
2016-01-06 04:52:11 +00:00
texstudio-debughelper-arm-fix.patch)
2018-07-06 18:56:07 +00:00
sha512sums=('c3d1e14df8efe3f37dd71e5d0148f57f117c666b9487712fca5a7bd967eca4f7951c970bc5bffab14daef4fb8497af33edf2fce23cc9ae4cf598d905d9312ef0'
2017-08-08 18:39:20 +00:00
'247e85f668b06c8a2def4e7456f0ddc8d35c7990484c1c037f7cf43fdee91419b5df66e968ef1e0c637fe685722bbad9171bdd79fad7a10912ae329aff088b68'
2017-12-02 00:44:28 +00:00
'a098c45440077db6c137bbeeb76d266242b80d51c3721aed30987d22b3e381b2a490b685aff4897d203a17256c64a9254360e3ac6f962675ea4b9a575a29a808'
2017-01-23 13:32:20 +00:00
'dcb5ce7cd3e83fc221903fa895e6c428c54ada7468e74bb0a3e6bfac01c9e9575e4780d300b67f44064f2d25e10dd1aef531b847cdee71fbfbe7337808a0c8f4')
2016-01-06 04:52:11 +00:00
prepare() {
2018-07-07 01:35:18 +00:00
cd texstudio-${pkgver}
sed -i "s/-lquazip/-lquazip5/g" texstudio.pro
sed -i "s|include/quazip|include/quazip5|g" texstudio.pro
cd src
2017-08-08 18:39:20 +00:00
patch -Np1 < "${srcdir}"/fs54269.patch
2017-12-01 14:46:17 +00:00
patch -Np1 < "${srcdir}"/fs56433.patch
2018-03-05 01:28:30 +00:00
patch -Np1 < "${srcdir}"/texstudio-debughelper-arm-fix.patch
2016-01-06 04:52:11 +00:00
}
build() {
2018-03-05 01:28:30 +00:00
cd texstudio-${pkgver}
2016-01-06 04:52:11 +00:00
[[ $CARCH == "aarch64" ]] && EXTRA="NO_CRASH_HANDLER=1"
2018-07-07 01:35:18 +00:00
qmake-qt5 CONFIG-="debug" $EXTRA USE_SYSTEM_QUAZIP=1 USE_SYSTEM_HUNSPELL=1 texstudio.pro
2016-01-06 04:52:11 +00:00
make
}
package() {
2018-03-05 01:28:30 +00:00
cd texstudio-${pkgver}
2017-03-30 03:22:40 +00:00
make INSTALL_ROOT="${pkgdir}" install
for res in $(/bin/ls /usr/share/icons/hicolor | grep '[0-9]\+x[0-9]\+'); do
mkdir -p "${pkgdir}"/usr/share/icons/hicolor/${res}/apps
2017-04-19 23:34:53 +00:00
convert -background none -density 1200 -resize ${res} \
2017-03-30 03:22:40 +00:00
"${pkgdir}"/usr/share/icons/hicolor/scalable/apps/texstudio.svg \
"${pkgdir}"/usr/share/icons/hicolor/${res}/apps/texstudio.png
done
2016-01-06 04:52:11 +00:00
}