mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
pkgname=lyx
|
|
pkgver=2.3.0
|
|
pkgrel=2
|
|
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'
|
|
'python3: support for python scripts')
|
|
license=('GPL')
|
|
source=("ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/$pkgname-$pkgver.tar.xz"
|
|
'lyxrc.dist')
|
|
md5sums=('77fbdf197aad3643745bef635c43db7a'
|
|
'b70fdeab95ba4a6c3ff72410dfa61823')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
export CXXFLAGS="$CXXFLAGS -fpermissive"
|
|
./configure --prefix=/usr \
|
|
--enable-qt5 \
|
|
--without-included-boost \
|
|
--without-included-mythes
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
# install default config file
|
|
install -Dm644 "${srcdir}/lyxrc.dist" "${pkgdir}/etc/lyx/lyxrc.dist"
|
|
ln -sf /etc/lyx/lyxrc.dist "${pkgdir}/usr/share/lyx/lyxrc.dist"
|
|
}
|