summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 \