From 6311e3a67177021fe570da984a0faaa9ac7d3730 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 12 Jul 2013 17:46:08 +0200 Subject: [PATCH] add Copy client, 15GB free cloud storage looking good --- xap/Copy/Copy.SlackBuild | 66 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 xap/Copy/Copy.SlackBuild diff --git a/xap/Copy/Copy.SlackBuild b/xap/Copy/Copy.SlackBuild new file mode 100755 index 00000000..f14a466f --- /dev/null +++ b/xap/Copy/Copy.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=${VERSION:-$(date +%Y.%m.%d)} +ARCH=$(uname -m) +BUILD=${BUILD:-1} +TAG=${TAG:-cyco} +TMP=${TMP:-/tmp/$TAG} +PKG=$TMP/pkg-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +PREFIX=/usr +LIBSUFFIX=$(echo $ARCH | grep -o 64) + +rm -rf $PKG +mkdir -p $TMP $PKG/usr $OUTPUT +cd $TMP || exit 1 + +[ ! -e $CWD/Copy.tgz ] && wget -c https://copy.com/install/linux/Copy.tgz -O $CWD/Copy.tgz + +tar xvf $CWD/$PRGNAM.tgz || exit 1 +cd copy || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX,doc/$PRGNAM} +mv README $PKG$PREFIX/doc/$PRGNAM +if [ "$LIBSUFFIX" == "64" ]; then + cd x86_64 +else + cd x86 +fi + +#This is not actually the version reported in the GUI, so we keep the date +#VERSION=$(strings CopyAgent | grep -i "Copy version" | grep -o "[0-9.]*" | grep \\\.) + +mv CopyAgent CopyCmd CopyConsole copyext.rcc $PKG$PREFIX/bin +mv libBrt.so libCloudMount.so libCloudSync.so libGui.so libcaja-copy.so libnautilus-copy.so $PKG$PREFIX/lib$LIBSUFFIX + +mkdir -p $PKG/install +cat < $PKG/install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +$PRGNAM: $PRGNAM (A cloud for people, friends, and companies.) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: https://www.copy.com/home/ +$PRGNAM: +EOF + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz