archrelease: copy trunk to extra-x86_64
[arch-packages.git] / lyx / trunk / PKGBUILD
blob21e9af6d8c7831b4f43fb5e7e1acab3ce898ca7f
1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Contributor: Jason Chu <jason@archlinux.org>
4 pkgname=lyx
5 pkgver=2.3.6.1
6 pkgrel=3
7 pkgdesc="An advanced WYSIWYM document processor & LaTeX front-end"
8 arch=('x86_64')
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')
12 makedepends=('boost')
13 optdepends=('rcs: built-in version control system'
14             'texlive-latexextra: float wrap support'
15             'python: support for python scripts')
16 license=('GPL')
17 backup=('etc/lyx/lyxrc.dist')
18 options=('emptydirs')
19 source=(https://ftp.lip6.fr/pub/lyx/stable/2.3.x/lyx-$pkgver.tar.gz{,.sig}
20         lyxrc.dist)
21 validpgpkeys=('FE66471B43559707AFDAD955DE7A44FAC7FB382D')  # LyX Release Manager
22 sha512sums=('b2f24d32c3716144fc19a5187d59dce86c718e9180b3b33826a04477c5deeed8238c31e0569b8c218164726ab10b66c76c22dc7e0610ca18a7b7e651a3525cbd'
23             'SKIP'
24             'eef777cf6033a7b1e04700f33068b07309f8d5c6931c16927305dafb3a00fd46d4b536149349ab56b7455e7dea195c8889da2b6fbf9caa9e76bc0557f9358bc3')
26 build() {
27   cd "${pkgname}-${pkgver}"
28   ./configure --prefix=/usr \
29     --enable-qt5 --without-included-boost \
30     --without-included-mythes
31   make
34 package() {
35   cd "${pkgname}-${pkgver}"
36   make DESTDIR="${pkgdir}" install
37 # install appdata
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"