blob: 9e82f15e80f8f09ebe4802a92206f02ea08127d8 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Maintainer: Valentin Bruch <software@vbruch.eu>
# Select the PDF engine
_use_mupdf=ON # ON or OFF
_use_poppler=OFF # ON or OFF
# Select the Qt version
_qt_version_major=6 # 5 or 6
pkgname=beamerpresenter-git
pkgver=0.2.5_983.c30fca1
pkgrel=1
pkgdesc="Modular multi-screen pdf presenter (git)"
arch=('x86_64')
url="https://github.com/stiglers-eponym/BeamerPresenter"
license=('AGPL3' 'GPL3')
# depends and makedepends will be filled based on the PDF engine.
depends=("qt${_qt_version_major}-multimedia" "qt${_qt_version_major}-svg")
makedepends=('cmake' 'git' "qt${_qt_version_major}-tools")
backup=('etc/xdg/beamerpresenter/beamerpresenter.conf' 'etc/xdg/beamerpresenter/gui.json')
source=('git+https://github.com/stiglers-eponym/BeamerPresenter.git')
sha256sums=('SKIP')
if [ "${_use_mupdf}" == 'ON' ]
then
depends+=('jbig2dec' 'openjpeg2' 'gumbo-parser' 'libmupdf')
elif [ "${_use_mupdf}" == 'OFF' ]
then
license=('GPL3')
fi
if [ "${_use_poppler}" == 'ON' ]
then
depends+=("poppler-qt${_qt_version_major}")
fi
if [ "${_qt_version_major}" == "5" ]
then
optdepends=('gst-libav: show videos' 'gst-plugins-good: show videos')
fi
pkgver() {
printf "0.2.5_%s.%s" \
"$(git -C "${srcdir}/BeamerPresenter" rev-list --count HEAD)" \
"$(git -C "${srcdir}/BeamerPresenter" rev-parse --short HEAD)"
}
conflicts=('beamerpresenter')
provides=("beamerpresenter=${pkgver}")
build() {
mkdir -p "${pkgname}-${pkgver}/build"
cmake \
-B "${pkgname}-${pkgver}/build" \
-S "${srcdir}/BeamerPresenter" \
-DCMAKE_BUILD_TYPE='None' \
-DGIT_VERSION=ON \
-DUSE_POPPLER="${_use_poppler}" \
-DUSE_MUPDF="${_use_mupdf}" \
-DUSE_QTPDF=OFF \
-DUSE_EXTERNAL_RENDERER=OFF \
-DLINK_MUPDF_THIRD=OFF \
-DLINK_GUMBO=ON \
-DUSE_TRANSLATIONS=ON \
-DINSTALL_LICENSE=OFF \
-DQT_VERSION_MAJOR="${_qt_version_major}" \
-DMUPDF_USE_SYSTEM_LIBS=ON \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_SYSCONFDIR='/etc'
cmake --build "${pkgname}-${pkgver}/build"
}
package() {
DESTDIR="${pkgdir}" cmake --install "${pkgname}-${pkgver}/build"
install -Dm644 "${srcdir}/BeamerPresenter/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|