aboutsummaryrefslogtreecommitdiff
path: root/development/android-studio/android-studio.SlackBuild
diff options
context:
space:
mode:
authorRoberto Metere <roberto@metere.it>2016-12-01 16:40:09 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-12-01 16:40:09 +0700
commita1dab4e2b5267c7851b69b8046b36b80efae63ae (patch)
tree0fe1e797d4e454eb269a79a58e8a8e897ede5383 /development/android-studio/android-studio.SlackBuild
parent460f413533b5542f48cf1c29c7af313068617e93 (diff)
development/android-studio: Updated for version 2.2.2.0_145_3360264.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/android-studio/android-studio.SlackBuild')
-rw-r--r--development/android-studio/android-studio.SlackBuild22
1 files changed, 15 insertions, 7 deletions
diff --git a/development/android-studio/android-studio.SlackBuild b/development/android-studio/android-studio.SlackBuild
index b6d5bd456370..32631c9f2dd6 100644
--- a/development/android-studio/android-studio.SlackBuild
+++ b/development/android-studio/android-studio.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=android-studio
-VERSION=${VERSION:-2.1.2.0_143_2915827}
+VERSION=${VERSION:-2.2.2.0_145_3360264}
SRCVER=$(echo ${VERSION#*_} | sed 's/_/./')
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,6 +46,7 @@ mkdir -p $TMP $PKG $OUTPUT
mkdir -p $PKG/usr/share
cd $PKG/usr/share/
unzip $CWD/$PRGNAM-ide-${SRCVER}-linux.zip
+cd $PKG
#
# Make and install launchers
@@ -53,16 +54,23 @@ unzip $CWD/$PRGNAM-ide-${SRCVER}-linux.zip
mkdir -p $PKG/usr/share/applications
install -D -m 644 $CWD/android-studio.desktop $PKG/usr/share/applications/android-studio.desktop
mkdir -p $PKG/usr/bin
-for i in $(find $PWD -executable -type f | grep -v -e "\.sh$")
-do
- ln -s /usr/share/$PRGNAM/bin/$(basename $i) ../bin/.
-done
-ln -s /usr/share/$PRGNAM/bin/studio.sh ../bin/$PRGNAM
-ln -s /usr/share/$PRGNAM/bin/inspect.sh ../bin/$PRGNAM-inspect
+(
+ cd $PKG/usr/bin
+ for i in $(find $PKG/usr/share/ -executable -type f | grep -v -e "\.sh$")
+ do
+ if [ ! -e "$PKG/usr/bin/$(basename $i)" -a ! -h "$PKG/usr/bin/$(basename $i)" ]
+ then
+ ln -s ../share/$PRGNAM/bin/$(basename $i) .
+ fi
+ done
+ ln -s ../share/$PRGNAM/bin/studio.sh $PRGNAM
+ ln -s ../share/$PRGNAM/bin/inspect.sh $PRGNAM-inspect
+)
# Adjust ownerships and permissions
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+chmod +x usr/share/$PRGNAM/bin/studio.sh usr/share/$PRGNAM/bin/inspect.sh
cd