desktop/lyx/PKGBUILD

42 lines
1.3 KiB
Bash
Raw Normal View History

2010-06-03 07:12:46 +08:00
pkgname=lyx
2017-05-18 07:02:31 +08:00
pkgver=2.2.3
2017-10-26 06:24:17 +08:00
pkgrel=2
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'
'kbibtex: BibTeX reference manager')
2010-06-03 07:12:46 +08:00
license=('GPL')
2016-05-27 07:31:34 +08:00
source=("ftp://ftp.lyx.org/pub/lyx/stable/2.2.x/$pkgname-$pkgver.tar.xz"
2014-04-27 21:31:19 +08:00
'lyx.desktop'
2017-05-18 07:02:31 +08:00
'lyxrc.dist')
md5sums=('032147bf8e05040787b0fca43fd70de3'
2014-11-17 14:13:38 +08:00
'3827d343670a38d97bdc7e002ff1e4a1'
2017-05-18 07:02:31 +08:00
'b70fdeab95ba4a6c3ff72410dfa61823')
2010-06-03 07:12:46 +08:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./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
2010-06-03 07:12:46 +08:00
# install desktop entry
2011-09-07 10:34:16 +08:00
install -Dm644 "${srcdir}/lyx.desktop" "${pkgdir}/usr/share/applications/lyx.desktop"
2014-11-17 14:13:38 +08:00
install -Dm644 "lib/images/lyx.png" "${pkgdir}/usr/share/pixmaps/lyx.png"
2014-04-27 21:31:19 +08:00
# install default config file
install -Dm644 "${srcdir}/lyxrc.dist" "${pkgdir}/usr/share/lyx/lyxrc.dist"
2010-06-03 07:12:46 +08:00
}