aboutsummaryrefslogtreecommitdiff
path: root/network/pydio-sync
diff options
context:
space:
mode:
Diffstat (limited to 'network/pydio-sync')
-rw-r--r--network/pydio-sync/README7
-rw-r--r--network/pydio-sync/pydio-sync.SlackBuild47
-rw-r--r--network/pydio-sync/pydio-sync.info8
3 files changed, 35 insertions, 27 deletions
diff --git a/network/pydio-sync/README b/network/pydio-sync/README
index 4431891fcc83..f72b610d64f3 100644
--- a/network/pydio-sync/README
+++ b/network/pydio-sync/README
@@ -1,7 +1,2 @@
Pydio Sync is a Dropbox-like desktop sync client for the
-cloud file management Pydio. This is the Java Binary.
-
-Please note that the client is in an early state and not supported.
-Pydio itself needs to be configured by enabling `meta.filehasher`
-for a repository, which needs the PHP PECL module `rsync` (not available
-on SlackBuilds.org) which needs librsync.
+cloud file management Pydio.
diff --git a/network/pydio-sync/pydio-sync.SlackBuild b/network/pydio-sync/pydio-sync.SlackBuild
index ae91e72a5ff4..fe8aa73aec61 100644
--- a/network/pydio-sync/pydio-sync.SlackBuild
+++ b/network/pydio-sync/pydio-sync.SlackBuild
@@ -25,8 +25,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pydio-sync
-SRCNAM=PydioSync-Linux-Binaries
-VERSION=${VERSION:-1.2.4}
+VERSION=${VERSION:-1.2.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,15 +56,14 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-mkdir -p $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
-tar xvf $CWD/$SRCNAM-v$VERSION.tar.gz
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -73,25 +71,40 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-mkdir -p $PKG/opt/$PRGNAM $PKG/usr/bin $PKG/usr/share/applications \
- $PKG/usr/share/pixmaps
+PYTHONVER=$(python -c 'import sys; print sys.version[:3]')
-cp -ar $TMP/$PRGNAM-$VERSION/* $PKG/opt/$PRGNAM
-cat <<EOF > $PKG/usr/bin/pydio-sync
-#!/bin/sh
(
- cd /opt/$PRGNAM/pydio-ui
- ./pydio-ui
+ cd src/systray
+
+ # fix destination path
+ sed -i "/^ target.path = \.\//c\ target.path = $PKG\/usr\/bin" systray.pro
+
+ qmake-qt5 systray.pro
+
+ # fix compiler flags
+ sed -i "/^CFLAGS/c\CFLAGS=$SLKCFLAGS" Makefile
+ sed -i "/^CXXFLAGS/c\CXXFLAGS=$SLKCFLAGS" Makefile
+
+ make
+ make install
)
-EOF
-chmod +x $PKG/usr/bin/pydio-sync
-# DO NOT STRIP BINARIES!
+cat << EOF > $PKG/usr/bin/$PRGNAM
+#!/bin/sh
+
+export PYTHONPATH=/opt/pydio-agent/usr/lib${LIBDIRSUFFIX}/python${PYTHONVER}/site-packages
+python -m pydio.main &> /dev/null &
+/usr/bin/pydio-ui &> /dev/null &
+EOF
+chmod 0755 $PKG/usr/bin/$PRGNAM
-install -D -m 644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications
-install -D -m 644 $CWD/${PRGNAM}_128x128.png $PKG/usr/share/pixmaps
+install -D -m 644 \
+ $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+install -D -m 644 \
+ $CWD/${PRGNAM}_128x128.png $PKG/usr/share/pixmaps/${PRGNAM}_128x128.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/pydio-sync/pydio-sync.info b/network/pydio-sync/pydio-sync.info
index 99be7086eacc..87d0e4e1d88b 100644
--- a/network/pydio-sync/pydio-sync.info
+++ b/network/pydio-sync/pydio-sync.info
@@ -1,10 +1,10 @@
PRGNAM="pydio-sync"
-VERSION="1.2.4"
+VERSION="1.2.6"
HOMEPAGE="https://pydio.com/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://download.pydio.com/pub/pydio-sync/release/1.2.4/PydioSync-Linux-Binaries-v1.2.4.tar.gz"
-MD5SUM_x86_64="5282e0029a06e65d753f4e06e5511929"
-REQUIRES=""
+DOWNLOAD_x86_64="https://s.mos6581.de/static/slackbuilds.org/sources/pydio-sync/pydio-sync-1.2.6.tar.xz"
+MD5SUM_x86_64="02ad5bcd2b5c7127b26a4f494473f70b"
+REQUIRES="pydio-agent qt5-webkit"
MAINTAINER="Marcel Saegebarth"
EMAIL="marc@mos6581.de"