blob: 36c170efcaf8fb31c84a81693b8d6682065cc122 (
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
|
#!/bin/sh -e
: ${FLATPAK_ARCH:=$(flatpak --default-arch)}
flatpak_builder()
{
flatpak-builder \
--user \
--arch="${FLATPAK_ARCH}" \
--repo=repo \
--sandbox \
"$@"
}
FLATPAK_MANIFEST_DIR=$(dirname "$(readlink -f "$0")")
cd "${FLATPAK_MANIFEST_DIR}"
# Build everything but Remmina module
flatpak_builder \
--force-clean \
--install-deps-from=flathub \
--stop-at=remmina \
app/ org.remmina.Remmina.json --ccache
# Build Remmina module from local checkout
mkdir -p _flatpak_build
flatpak build --build-dir="${PWD}/_flatpak_build" app/ \
cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX:PATH=/app \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DWITH_MANPAGES:BOOL=OFF \
-DWITH_TELEPATHY:BOOL=OFF \
../..
flatpak build app/ \
ninja -v -C _flatpak_build install
# Finish Flatpak app
flatpak_builder \
--disable-download \
--disable-updates \
--finish-only \
app/ org.remmina.Remmina.json
|