From dda0b9a727448674fe7ceb1f2492840239f57ae3 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 25 Aug 2016 19:12:27 +0200 Subject: [PATCH] add nextcloudclient and move owncloudclient to unused Signed-off-by: Gwenhael Le Moine --- ap/motion/motion.SlackBuild | 6 +- ap/motion/motion.info | 10 -- ap/motion/motion.info.sbopkg | 10 -- .../owncloudclient/owncloudclient.SlackBuild | 0 .../nextcloudclient.SlackBuild | 96 +++++++++++++++++++ xap/update-flashplayer-plugin.sh | 2 +- 6 files changed, 100 insertions(+), 24 deletions(-) delete mode 100644 ap/motion/motion.info delete mode 100644 ap/motion/motion.info.sbopkg rename xap/{ => UNUSED}/owncloudclient/owncloudclient.SlackBuild (100%) create mode 100755 xap/nextcloudclient/nextcloudclient.SlackBuild diff --git a/ap/motion/motion.SlackBuild b/ap/motion/motion.SlackBuild index 708e13c4..98d006fc 100755 --- a/ap/motion/motion.SlackBuild +++ b/ap/motion/motion.SlackBuild @@ -99,11 +99,11 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done # Let's not clobber the config file -mv $PKG/etc/motion-dist.conf $PKG/etc/motion-dist.conf.new +[ -e $PKG/etc/motion-dist.conf ] && mv $PKG/etc/motion-dist.conf $PKG/etc/motion-dist.conf.new mkdir $PKG/usr/doc -mv $PKG/usr/share/doc/motion-* $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/usr/share/$PRGNAM-*/examples $PKG/usr/doc/$PRGNAM-$VERSION/ +mv $PKG/usr/share/doc/motion $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/$PRGNAM/examples $PKG/usr/doc/$PRGNAM-$VERSION/ rm -rf $PKG/usr/share # We moved the docs from there cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/ap/motion/motion.info b/ap/motion/motion.info deleted file mode 100644 index 643987ca..00000000 --- a/ap/motion/motion.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="motion" -VERSION="20120717_0fb31d6" -HOMEPAGE="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/motion-20120717_0fb31d6.tar.xz" -MD5SUM="904e2b1a621b1eb13c9c66adece88508" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Sebastian Arcus" -EMAIL="sbo open-t {dot} co {dot} uk" diff --git a/ap/motion/motion.info.sbopkg b/ap/motion/motion.info.sbopkg deleted file mode 100644 index 643987ca..00000000 --- a/ap/motion/motion.info.sbopkg +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="motion" -VERSION="20120717_0fb31d6" -HOMEPAGE="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/motion-20120717_0fb31d6.tar.xz" -MD5SUM="904e2b1a621b1eb13c9c66adece88508" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Sebastian Arcus" -EMAIL="sbo open-t {dot} co {dot} uk" diff --git a/xap/owncloudclient/owncloudclient.SlackBuild b/xap/UNUSED/owncloudclient/owncloudclient.SlackBuild similarity index 100% rename from xap/owncloudclient/owncloudclient.SlackBuild rename to xap/UNUSED/owncloudclient/owncloudclient.SlackBuild diff --git a/xap/nextcloudclient/nextcloudclient.SlackBuild b/xap/nextcloudclient/nextcloudclient.SlackBuild new file mode 100755 index 00000000..e3abf45f --- /dev/null +++ b/xap/nextcloudclient/nextcloudclient.SlackBuild @@ -0,0 +1,96 @@ +#!/bin/sh -x + +# variables +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")} +STABLE=${STABLE:-"NO"} +ARCH=${ARCH:-$(uname -m)} +BUILD=1 + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM + +PREFIX=/usr + +SLCKFLAGS=" -O " + +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM + +mkdir -p $PKG + +# mise en place +cd $TMP +if [ "x$STABLE" == "xYES" ]; then + wget -c https://download.owncloud.com/desktop/stable/$PRGNAM-$VERSION.tar.xz -O $CWD/$PRGNAM-$VERSION.tar.xz + tar xf $CWD/$PRGNAM-$VERSION.tar.xz +else + if [ ! -e $REPOSITORY ]; then + git clone https://github.com/nextcloud/client_theming.git $REPOSITORY + fi + ( cd $REPOSITORY + git pull + git submodule update --init + cd client + git submodule update --init ) + + cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION +fi + +cd $TMP/$PRGNAM-$VERSION + +mkdir build-linux +cd build-linux +cmake +# configuration +cmake \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DSYSCONFDIR=/etc \ + -D OEM_THEME_DIR=`pwd`/../nextcloudtheme \ + ../client + +# compilation +make -j3 + +# installation +make install DESTDIR=$PKG + +# correction +cd $PKG +chown -R root:root * + +find $PKG -name \.git\* -exec rm -fr {} \; + +[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + +# Strip binaries +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + + +# embaumement +mkdir -p $PKG/install +cat < $PKG/install/slack-desc +$PRGNAM: $PRGNAM (NextCloud Desktop Syncing Client) +$PRGNAM: +$PRGNAM: nextcloud themed desktop client +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://github.com/nextcloud/client_theming +$PRGNAM: +EOF + +# empaquetage +cd $PKG +makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz diff --git a/xap/update-flashplayer-plugin.sh b/xap/update-flashplayer-plugin.sh index f732403e..c1bedee6 100755 --- a/xap/update-flashplayer-plugin.sh +++ b/xap/update-flashplayer-plugin.sh @@ -6,5 +6,5 @@ cd /home/installs/mirrors/slackware64-current/extra/flashplayer-plugin VERSION=$LATEST_VERSION ./flashplayer-plugin.SlackBuild rm install_flash_player*.tar.gz -upgradepkg --install-new --reinstall /tmp/flashplayer-plugin-$LATEST_VERSION-x86_64-*.txz +upgradepkg --install-new --reinstall /tmp/flashplayer-plugin-*.txz /root/clean-tmp.sh