diff options
author | Roberto Metere <roberto@metere.it> | 2017-06-30 13:07:27 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-06-30 13:07:27 +0700 |
commit | e7a9adca1180c2bf20a17ce0e8c492909ce8fb1c (patch) | |
tree | 2a20ebc9ff70e73ee328e02329862935fa6da3d8 /development/android-studio/android-studio.SlackBuild | |
parent | 53a298c920df54eb62bbbbf59b7a04f425bc8c55 (diff) | |
download | slackbuilds-e7a9adca1180c2bf20a17ce0e8c492909ce8fb1c.tar.gz |
development/android-studio: Updated for version 2.3.3.0_162_4069837.
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.SlackBuild | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/development/android-studio/android-studio.SlackBuild b/development/android-studio/android-studio.SlackBuild index bfd8047e0e..5aab0e4515 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 |