add nextcloudclient and move owncloudclient to unused

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2016-08-25 19:12:27 +02:00
parent cba00c6bd5
commit dda0b9a727
6 changed files with 100 additions and 24 deletions

View file

@ -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

View file

@ -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 <at> open-t {dot} co {dot} uk"

View file

@ -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 <at> open-t {dot} co {dot} uk"

View file

@ -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 <<EOF > $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

View file

@ -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