From 5a01946ed94bba0bf8a3d795eeaf227af818ebbb Mon Sep 17 00:00:00 2001 From: David Spencer Date: Mon, 29 May 2017 20:31:34 +0100 Subject: misc/gcp: Update to avoid dep download. Also fixed package arch (not noarch). Signed-off-by: David Spencer --- misc/gcp/gcp.SlackBuild | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'misc/gcp') 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 \ -- cgit v1.2.3