diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2016-07-24 15:05:00 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-30 08:29:02 +0700 |
commit | f807efc17c644342acc255dc75471e566e8cdb13 (patch) | |
tree | 027a5a950cacd3fa4710dd6617d33156ba1977ea /network/pydio-sync/pydio-sync.SlackBuild | |
parent | a8382655358ec050d97bcdeb8125ec7ff77e063b (diff) | |
download | slackbuilds-f807efc17c644342acc255dc75471e566e8cdb13.tar.gz |
network/pydio-sync: Updated for version 1.2.6.
Signed-off-by: Marcel Saegebarth <marc@mos6581.de>
Diffstat (limited to 'network/pydio-sync/pydio-sync.SlackBuild')
-rw-r--r-- | network/pydio-sync/pydio-sync.SlackBuild | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/network/pydio-sync/pydio-sync.SlackBuild b/network/pydio-sync/pydio-sync.SlackBuild index ae91e72a5f..fe8aa73aec 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 |