-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
37 lines (33 loc) · 1016 Bytes
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Bruno Silva <brunofernandes at ua dot pt>
pkgname=lyx-git
_pkgname=lyx
pkgver=2.3.0beta1.r1302.g1bf4d7b0fc
pkgrel=1
pkgdesc="An advanced WYSIWYM document processor & LaTeX front-end"
arch=('i686' 'x86_64')
url="http://www.lyx.org"
license=('GPL')
depends=(qt5-svg qt5-base python imagemagick enchant python-pyenchant boost-libs libmythes file)
makedepends=(glibc qt5-base git autoconf automake gcc bc)
optdepends=(texlive-core rcs texlive-latexextra)
provides=('lyx')
conflicts=('lyx')
replaces=('')
source=("${_pkgname}::git://git.lyx.org/${_pkgname}.git#branch=master")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${srcdir}/${_pkgname}"
./autogen.sh && ./configure --enable-qt5 --prefix=/usr
make -j"$(nproc)"
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="$pkgdir/" install
}