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
|
2017-03-28 12:32:21 +00:00
|
|
|
pkgver=2.12.4
|
2017-04-19 23:34:53 +00:00
|
|
|
pkgrel=3
|
2016-01-06 04:52:11 +00:00
|
|
|
pkgdesc="Integrated writing environment for creating LaTeX documents"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://texstudio.sourceforge.net/"
|
|
|
|
license=('GPL')
|
2017-03-30 03:22:40 +00:00
|
|
|
depends=('poppler-qt5' 'qt5-svg' 'qt5-script' 'libxkbcommon-x11' 'hicolor-icon-theme')
|
|
|
|
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')
|
2016-10-01 02:07:45 +00:00
|
|
|
source=("hg+http://hg.code.sf.net/p/texstudio/hg#tag=${pkgver}"
|
2016-01-06 04:52:11 +00:00
|
|
|
texstudio-debughelper-arm-fix.patch)
|
2017-01-23 13:32:20 +00:00
|
|
|
sha512sums=('SKIP'
|
|
|
|
'dcb5ce7cd3e83fc221903fa895e6c428c54ada7468e74bb0a3e6bfac01c9e9575e4780d300b67f44064f2d25e10dd1aef531b847cdee71fbfbe7337808a0c8f4')
|
2016-01-06 04:52:11 +00:00
|
|
|
|
|
|
|
prepare() {
|
2016-10-01 02:07:45 +00:00
|
|
|
cd hg
|
2016-01-06 04:52:11 +00:00
|
|
|
patch -p1 -i ../texstudio-debughelper-arm-fix.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2016-10-01 02:07:45 +00:00
|
|
|
cd hg
|
2016-01-06 04:52:11 +00:00
|
|
|
[[ $CARCH == "aarch64" ]] && EXTRA="NO_CRASH_HANDLER=1"
|
|
|
|
qmake-qt5 CONFIG-="debug" $EXTRA texstudio.pro
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2016-10-01 02:07:45 +00:00
|
|
|
cd hg
|
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
|
|
|
}
|