back Compile Nextcloud client on OpenBSD 6.3

comp
publication: Junho 06 2018 16:23
last update: Novembro 19 2019 07:58

nextcloudclient is now available on OpenBSD ports tree \o/ (discussion on miling list)

Installing dependencies (other dependencies are dependencies of those packages):

# pkg_add qtwebkit qtkeychain-qt5 cmake libinotify

Clone Nextcloud client repository:

$ mkdir -p ~/src
$ cd ~/src
$ git clone https://github.com/nextcloud/client_theming.git nextcloud-client

Compiling:

$ cd nextcloud-client
$ git submodule update --init --recursive
$ mkdir build
$ cd build
$ cmake -DOEM_THEME_DIR=/home/$USER/src/nextcloud-client/nextcloudtheme \
    -DCMAKE_PREFIX_PATH=/usr/local/lib/qt5/cmake \
    -DCMAKE_C_FLAGS="-I/usr/local/include -I/usr/local/include/inotify" \
    -DCMAKE_CXX_FLAGS="-I/usr/local/include -I/usr/local/include/inotify" \
    -DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/lib -L/usr/local/lib/inotify -Wl,-rpath=/usr/local/lib/inotify -linotify" \
    -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 \
    -DCMAKE_DISABLE_FIND_PACKAGE_KF5=TRUE \
    -DCMAKE_DISABLE_FIND_PACKAGE_Qt5LinguistTools=TRUE \
    /home/$USER/src/nextcloud-client/client
$ make
$ doas make install

everything should be fine! ;-)

Running the client

Depending on the number of files you sync, you may need to increase the open files limit:

$ ulimit -n 4096
$ nextcloud

Increase the ulimit as your necessity.

get in touch