desktop/lyx/PKGBUILD

36 lines
1.2 KiB
Bash
Raw Normal View History

2010-06-03 07:12:46 +08:00
pkgname=lyx
2018-12-15 19:38:14 +08:00
pkgver=2.3.2
2018-10-24 18:58:49 +08:00
pkgrel=1
pkgdesc="An advanced open-source document processor"
2012-11-12 12:14:36 +08:00
arch=('x86_64')
2010-06-03 07:12:46 +08:00
url="http://www.lyx.org"
2016-02-14 00:55:04 +08:00
screenshot=('http://www.lyx.org/images/about/main_window.png')
2017-01-25 02:42:17 +08:00
depends=('qt5-base' 'qt5-svg' 'texlive-core' 'python2' 'perl' 'imagemagick' 'enchant' 'libmythes' 'boost-libs' 'icu' 'hunspell')
2014-04-27 21:31:19 +08:00
makedepends=('boost' 'bc')
optdepends=('texlive-most: TeX Live goodies'
2018-03-12 20:51:54 +08:00
'kbibtex: BibTeX reference manager'
'python3: support for python scripts')
2010-06-03 07:12:46 +08:00
license=('GPL')
2018-12-15 19:38:14 +08:00
source=("ftp://ftp.lip6.fr/pub/lyx/stable/2.3.x/$pkgname-$pkgver.tar.xz"
2017-05-18 07:02:31 +08:00
'lyxrc.dist')
2018-12-15 19:38:14 +08:00
md5sums=('7e32b2e4440f2d47053610250840080b'
2017-05-18 07:02:31 +08:00
'b70fdeab95ba4a6c3ff72410dfa61823')
2010-06-03 07:12:46 +08:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
2018-03-12 20:51:54 +08:00
export CXXFLAGS="$CXXFLAGS -fpermissive"
2010-06-03 07:12:46 +08:00
./configure --prefix=/usr \
2016-05-27 07:31:34 +08:00
--enable-qt5 \
2014-11-17 14:13:38 +08:00
--without-included-boost \
--without-included-mythes
2012-07-04 01:00:08 +08:00
make
2011-09-07 10:34:16 +08:00
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2014-04-27 21:31:19 +08:00
# install default config file
2018-03-12 20:51:54 +08:00
install -Dm644 "${srcdir}/lyxrc.dist" "${pkgdir}/etc/lyx/lyxrc.dist"
ln -sf /etc/lyx/lyxrc.dist "${pkgdir}/usr/share/lyx/lyxrc.dist"
2010-06-03 07:12:46 +08:00
}