diff options
Diffstat (limited to 'development/cf-cli/cf-cli.SlackBuild')
-rw-r--r-- | development/cf-cli/cf-cli.SlackBuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/development/cf-cli/cf-cli.SlackBuild b/development/cf-cli/cf-cli.SlackBuild index 0d1aa78381..322d920f32 100644 --- a/development/cf-cli/cf-cli.SlackBuild +++ b/development/cf-cli/cf-cli.SlackBuild @@ -24,7 +24,7 @@ BIN=cf PRGNAM=$BIN-cli -VERSION=${VERSION:-6.51.0} +VERSION=${VERSION:-7.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -46,10 +46,11 @@ if [ "$ARCH" = "i486" ]; then elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" + mv $CWD/${BIN}7-cli\_$VERSION\_linux\_$ARCH.tgz $CWD/$PRGNAM\_$VERSION\_linux\_$ARCH.tgz elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" - mv $CWD/$PRGNAM\_$VERSION\_linux\_x86-64.tgz $CWD/$PRGNAM\_$VERSION\_linux\_$ARCH.tgz + mv $CWD/${BIN}7-cli\_$VERSION\_linux\_x86-64.tgz $CWD/$PRGNAM\_$VERSION\_linux\_$ARCH.tgz else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -71,10 +72,12 @@ 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 {} \; +mv ${BIN}7 $PKG/usr/bin/. mv $BIN $PKG/usr/bin/. find -L $PKG -type d -exec chmod 755 {} \; -chmod 755 $PKG/usr/bin/* +chmod 755 $PKG/usr/bin/${BIN}7 +chmod 755 $PKG/usr/bin/$BIN find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |