mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-25 00:30:06 -07:00
31 lines
671 B
Bash
Executable File
31 lines
671 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
export DESTDIR="$1"
|
|
|
|
for patch in *.patch; do
|
|
patch -p1 < "$patch"
|
|
done
|
|
|
|
# Get rid of i18n.
|
|
rm -rf po poqm
|
|
|
|
# Fix missing include in latest Qt.
|
|
sed -i 's/\(Settings>\)/\1\n#include <QFile>/' \
|
|
src/plugins/VerticalTabs/verticaltabsplugin.cpp
|
|
|
|
# Remove unused xcb-util dependency.
|
|
sed -i 's/XCB UTIL/XCB/' CMakeLists.txt
|
|
sed -i '/xcb_atom.h/d' src/lib/app/browserwindow.cpp
|
|
|
|
cmake -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_TESTING=OFF \
|
|
-DDISABLE_DBUS=ON
|
|
|
|
cmake --build build
|
|
cmake --install build
|
|
|
|
install -Dm755 falkon-privacy "$1/usr/bin/falkon-privacy"
|