blob: 2d35fd504aa1fda0cd2ae92cf4824796a50949d4 (
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
|
# 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
pkgver=0.2.5
pkgrel=1
pkgdesc="Modular multi-screen pdf presenter"
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' "qt${_qt_version_major}-tools")
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
backup=('etc/xdg/beamerpresenter/beamerpresenter.conf' 'etc/xdg/beamerpresenter/gui.json')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('87d5ba4b369636862638edf9e67d162d94d43b0335101ff975b188c55316e40e')
conflicts=('beamerpresenter')
provides=("beamerpresenter=${pkgver}")
build() {
mkdir -p "${pkgname}-${pkgver}/build"
cmake \
-B "${pkgname}-${pkgver}/build" \
-S "${srcdir}/BeamerPresenter-${pkgver}" \
-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-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|