desktop/lyx/PKGBUILD
2017-05-15 23:41:19 +01:00

49 lines
1.4 KiB
Bash

pkgname=lyx
pkgver=2.2.2
pkgrel=3
pkgdesc="An advanced open-source document processor"
arch=('x86_64')
url="http://www.lyx.org"
screenshot=('http://www.lyx.org/images/about/main_window.png')
depends=('qt5-base' 'qt5-svg' 'texlive-core' 'python2' 'perl' 'imagemagick' 'enchant' 'libmythes' 'boost-libs' 'icu' 'hunspell')
makedepends=('boost' 'bc')
optdepends=('texlive-most: TeX Live goodies'
'kbibtex: BibTeX reference manager')
license=('GPL')
source=("ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/$pkgname-$pkgver.tar.xz"
'lyx.desktop'
'lyxrc.dist'
qt58.patch)
md5sums=('c37b2926d7df211c94b7260e163e2c29'
'3827d343670a38d97bdc7e002ff1e4a1'
'b70fdeab95ba4a6c3ff72410dfa61823'
'9761360820f7bf292740013f2267f733')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i ../qt58.patch
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr \
--enable-qt5 \
--without-included-boost \
--without-included-mythes
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# install desktop entry
install -Dm644 "${srcdir}/lyx.desktop" "${pkgdir}/usr/share/applications/lyx.desktop"
install -Dm644 "lib/images/lyx.png" "${pkgdir}/usr/share/pixmaps/lyx.png"
# install default config file
install -Dm644 "${srcdir}/lyxrc.dist" "${pkgdir}/usr/share/lyx/lyxrc.dist"
}