blob: 6d948624212f7acdb635c3c7e3d77fa8f2b67782 (
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
|
#!/bin/sh
NAME="nheko"
DESC="Qt5-based client for Matrix protocol"
MAKEDEPS=" asciidoctor cmake ninja boost lmdb lmdbxx tweeny qt5-qtbase qt5-qttools qt5-qtmultimedia qt5-qtsvg qt5-qtdeclarative qt5-qtquickcontrols2 qt5-qtkeychain zlib openssl olm nlohmann-json cmark spdlog mtxclient gst-plugins-base gst-plugins-bad xcb-util-wm gstreamer libevent fmt coeurl"
DEPS="qt5-qtgraphicaleffects qt5-qtbase qt5-qtmultimedia qt5-qtkeychain qt5-qtsvg"
PKG_VER=0.10.1
SOURCE="https://github.com/Nheko-Reborn/nheko/archive/v$PKG_VER.tar.gz"
ADDITIONAL="remove-fatal-secrets-error.patch"
prepare() {
apply_patches
sed -e '/-Wall/d' \
-e '/-Wextra/d' \
-e '/-Werror/d' \
-e '/-pedantic/d' \
-e '/-pipe/d' \
-i CMakeLists.txt
}
build() {
cmake -B build \
-GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_SKIP_RPATH=True \
-DCMAKE_BUILD_TYPE=None \
.
ninja -C build
}
package() {
DESTDIR="$PKG_DEST" ninja -C build install
}
|