Eager to see if I could use rclone-browser on NetBSD 10.0, I decided to see if it was still possible to compile it.
It is done.
From a complet NetBSD 10.0 install (with X11) :
pkgin install git cmake qt5-qtdeclarative rclone
cd /usr/pkg
git clone https://github.com/kapitainsky/RcloneBrowser.git
Open the file /usr/pkg/RcloneBrowser/src/main_window.cpp:
Replace the line:
QStringList lines = version.split("\n", QString::SkipEmptyParts);
With this:
QStringList lines = version.split("\n", Qt::SkipEmptyParts);
Also replace the line:
player->start(stream, QProcess::ReadOnly);
With this:
QStringList arguments;
arguments << stream;
player->start("playerExecutable", arguments, QProcess::ReadOnly);
You can make the 2 modifications above by directly executing the following commands:
sed -i 's/QString::SkipEmptyParts/Qt::SkipEmptyParts/' /usr/pkg/RcloneBrowser/src/main_window.cpp
sed -i 's/player->start(stream, QProcess::ReadOnly);/QStringList arguments;\n arguments << stream;\n player->start("playerExecutable", arguments, QProcess::ReadOnly);/' /usr/pkg/RcloneBrowser/src/main_window.cpp
Build :
cd /usr/pkg/RcloneBrowser
mkdir build && cd build
cmake .. -DCMAKE_PREFIX_PATH:PATH=/usr/pkg/qt5 -DCMAKE_INSTALL_RPATH=/usr/pkg/qt5/lib
make
make install
It would be nice to have a package