1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Contributor: Jason Chu <jason@archlinux.org>
7 pkgdesc="An advanced WYSIWYM document processor & LaTeX front-end"
9 url="https://www.lyx.org"
10 depends=('qt5-svg' 'texlive-core' 'python' 'imagemagick' 'enchant' 'hunspell'
11 'libmythes' 'file' 'hicolor-icon-theme' 'desktop-file-utils')
13 optdepends=('rcs: built-in version control system'
14 'texlive-latexextra: float wrap support'
15 'python: support for python scripts')
17 backup=('etc/lyx/lyxrc.dist')
19 source=(https://ftp.lip6.fr/pub/lyx/stable/2.3.x/lyx-$pkgver.tar.gz{,.sig}
21 validpgpkeys=('FE66471B43559707AFDAD955DE7A44FAC7FB382D') # LyX Release Manager
22 sha512sums=('b2f24d32c3716144fc19a5187d59dce86c718e9180b3b33826a04477c5deeed8238c31e0569b8c218164726ab10b66c76c22dc7e0610ca18a7b7e651a3525cbd'
24 'eef777cf6033a7b1e04700f33068b07309f8d5c6931c16927305dafb3a00fd46d4b536149349ab56b7455e7dea195c8889da2b6fbf9caa9e76bc0557f9358bc3')
27 cd "${pkgname}-${pkgver}"
28 ./configure --prefix=/usr \
29 --enable-qt5 --without-included-boost \
30 --without-included-mythes
35 cd "${pkgname}-${pkgver}"
36 make DESTDIR="${pkgdir}" install
38 install -Dm644 lib/appdata.xml "$pkgdir"/usr/share/metainfo/lyx.appdata.xml
40 # install default config file
41 install -Dm644 "${srcdir}/lyxrc.dist" "${pkgdir}/etc/lyx/lyxrc.dist"
42 ln -sf /etc/lyx/lyxrc.dist "${pkgdir}/usr/share/lyx/lyxrc.dist"