summaryrefslogtreecommitdiff
path: root/development/hub/hub.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/hub/hub.SlackBuild')
-rw-r--r--development/hub/hub.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/development/hub/hub.SlackBuild b/development/hub/hub.SlackBuild
index d0171bd7b5..50477f9670 100644
--- a/development/hub/hub.SlackBuild
+++ b/development/hub/hub.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hub
-VERSION=${VERSION:-2.4.0}
+VERSION=${VERSION:-2.6.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,9 +59,12 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION src
+mkdir -p src/github.com/github
+cd src/github.com/github
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+mv $PRGNAM-$VERSION hub
+cd hub
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,7 +72,8 @@ 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 {} \;
-./script/build
+GOPATH="$TMP/" make
+
mkdir -p $PKG/usr/bin
install -m755 bin/$PRGNAM $PKG/usr/bin/$PRGNAM