aboutsummaryrefslogtreecommitdiff
path: root/development/android-studio/android-studio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/android-studio/android-studio.SlackBuild')
-rw-r--r--development/android-studio/android-studio.SlackBuild30
1 files changed, 15 insertions, 15 deletions
diff --git a/development/android-studio/android-studio.SlackBuild b/development/android-studio/android-studio.SlackBuild
index bfd8047e0ee7..5aab0e451560 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.3.2.0_162_3934792}
+VERSION=${VERSION:-2.3.3.0_162_4069837}
SRCVER=$(echo ${VERSION#*_} | sed 's/_/./')
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,8 +43,8 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-mkdir -p $PKG/usr/share
-cd $PKG/usr/share/
+mkdir -p $PKG/opt
+cd $PKG/opt/
unzip $CWD/$PRGNAM-ide-${SRCVER}-linux.zip
cd $PKG
@@ -52,26 +52,26 @@ cd $PKG
# Make and install launchers
#
mkdir -p $PKG/usr/share/applications
-install -D -m 644 $PKG/usr/share/android-studio/bin/studio.png $PKG/usr/share/pixmaps/android-studio.png
+install -D -m 644 $PKG/opt/android-studio/bin/studio.png $PKG/usr/share/pixmaps/android-studio.png
install -D -m 644 $CWD/android-studio.desktop $PKG/usr/share/applications/android-studio.desktop
mkdir -p $PKG/usr/bin
(
- 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
+ cd $PKG/usr/bin
+ for i in $(find $PKG/opt/ -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 ../../opt/$PRGNAM/bin/$(basename $i) .
+ fi
+ done
+ ln -s ../../opt/$PRGNAM/bin/studio.sh $PRGNAM
+ ln -s ../../opt/$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
+chmod +x opt/$PRGNAM/bin/studio.sh opt/$PRGNAM/bin/inspect.sh
cd