summaryrefslogtreecommitdiff
path: root/misc/gcp
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2017-05-29 20:31:34 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-06 07:56:18 +0700
commit5a01946ed94bba0bf8a3d795eeaf227af818ebbb (patch)
treeef0bbd7d1ffbe9bca26a9767a341d39c3cae1d38 /misc/gcp
parentce28f47e7b4a241d9b44773e43cd0c66edba1d8e (diff)
downloadslackbuilds-5a01946ed94bba0bf8a3d795eeaf227af818ebbb.tar.gz
misc/gcp: Update to avoid dep download.
Also fixed package arch (not noarch). Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc/gcp')
-rw-r--r--misc/gcp/gcp.SlackBuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/misc/gcp/gcp.SlackBuild b/misc/gcp/gcp.SlackBuild
index d5fbe80bfd..5be0e85287 100644
--- a/misc/gcp/gcp.SlackBuild
+++ b/misc/gcp/gcp.SlackBuild
@@ -26,8 +26,16 @@
PRGNAM=gcp
VERSION=${VERSION:-0.1.3}
-ARCH=noarch # Leave this alone
-BUILD=${BUILD:-2}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -51,6 +59,9 @@ 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 {} \;
+# Omit obsolete distribute_setup dependency
+sed -i -e '/use_setuptools/d' setup.py
+
python setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \