development/android-studio: Updated for version 2.3.3.0_162_4069837.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Roberto Metere 2017-06-30 13:07:27 +07:00 committed by Willy Sudiarto Raharjo
parent 53a298c920
commit e7a9adca11
2 changed files with 18 additions and 18 deletions

View File

@ -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

View File

@ -1,8 +1,8 @@
PRGNAM="android-studio"
VERSION="2.3.2.0_162_3934792"
VERSION="2.3.3.0_162_4069837"
HOMEPAGE="https://developer.android.com/studio/index.html"
DOWNLOAD="https://dl.google.com/dl/android/studio/ide-zips/2.3.2.0/android-studio-ide-162.3934792-linux.zip"
MD5SUM="52c376659815ad3f9a9c4729608d04f6"
DOWNLOAD="https://dl.google.com/dl/android/studio/ide-zips/2.3.3.0/android-studio-ide-162.4069837-linux.zip"
MD5SUM="53692bc4b59ebc75982bc00ffb40efa3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""