mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/android-studio: Added (Android Development Tool).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
054512f6f6
commit
1be12a189a
5 changed files with 139 additions and 0 deletions
24
development/android-studio/README
Normal file
24
development/android-studio/README
Normal file
|
@ -0,0 +1,24 @@
|
|||
Android Studio is a new Android development environment based
|
||||
on IntelliJ IDEA. It provides new features and improvements over
|
||||
Eclipse ADT and will be the official Android IDE once it's
|
||||
ready.
|
||||
On top of the capabilities you expect from IntelliJ,
|
||||
Android Studio offers:
|
||||
|
||||
- Flexible Gradle-based build system.
|
||||
- Build variants and multiple APK generation.
|
||||
- Expanded template support for Google Services and various
|
||||
device types.
|
||||
- Rich layout editor with support for theme editing.
|
||||
- Lint tools to catch performance, usability, version
|
||||
compatibility, and other problems.
|
||||
- ProGuard and app-signing capabilities.
|
||||
- Built-in support for Google Cloud Platform, making it easy
|
||||
to integrate Google Cloud Messaging and App Engine.
|
||||
|
||||
After having installed this package, run Android Studio with:
|
||||
android-studio
|
||||
|
||||
The application would ask you for Java JDK, which is needed to
|
||||
use it effectively; if you have JavaJDK installed it could be
|
||||
in /usr/lib${LIBDIRSUFFIX}/java
|
75
development/android-studio/android-studio.SlackBuild
Normal file
75
development/android-studio/android-studio.SlackBuild
Normal file
|
@ -0,0 +1,75 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Slackware build script for Android Studio
|
||||
|
||||
# Copyright 2009-2010 Roberto Metere, Cagliari (CA), Italy <roberto@metere.it>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=android-studio
|
||||
VERSION=${VERSION:-0.8.14_135_1538390}
|
||||
SRCVER=${SRCVER:-135.1538390}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
case "$(uname -m)" in
|
||||
i?86) DEBARCH="i386" ; LIBDIRSUFFIX="" ; ARCH=i386 ;;
|
||||
x86_64) DEBARCH="amd64" ; LIBDIRSUFFIX="64" ; ARCH=x86_64 ;;
|
||||
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
|
||||
esac
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -eu
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
mkdir -p $PKG/usr/share
|
||||
cd $PKG/usr/share/
|
||||
unzip $CWD/$PRGNAM-ide-${SRCVER}-linux.zip
|
||||
#
|
||||
# Make and install launchers
|
||||
#
|
||||
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 $PKG/usr/share/$PRGNAM/bin/$i $PKG/usr/bin/.
|
||||
done
|
||||
ln -s $PKG/usr/share/$PRGNAM/bin/studio.sh $PKG/usr/bin/$PRGNAM
|
||||
ln -s $PKG/usr/share/$PRGNAM/bin/inspect.sh $PKG/usr/bin/$PRGNAM-inspect
|
||||
|
||||
# Adjust ownerships and permissions
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
chmod +x $PKG/usr/bin/android-studio
|
||||
cd
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-${VERSION}
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-${VERSION}/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
development/android-studio/android-studio.desktop
Normal file
10
development/android-studio/android-studio.desktop
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=Android Studio
|
||||
GenericName=Android IDE
|
||||
Comment=Android development environment based on IntelliJ IDEA
|
||||
Exec=/usr/share/android-studio/bin/studio.sh
|
||||
Icon=/usr/share/android-studio/bin/androidstudio.ico
|
||||
Path=/usr/share/android-studio/bin/
|
||||
Type=Application
|
||||
Categories=Development;Android
|
||||
Terminal=false
|
10
development/android-studio/android-studio.info
Normal file
10
development/android-studio/android-studio.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="android-studio"
|
||||
VERSION="0.8.14_135_1538390"
|
||||
HOMEPAGE="https://developer.android.com/sdk/installing/studio.html"
|
||||
DOWNLOAD="https://dl.google.com/dl/android/studio/ide-zips/0.8.14/android-studio-ide-135.1538390-linux.zip"
|
||||
MD5SUM="e6fd228fc46e081faaf7732281211f79"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="jdk"
|
||||
MAINTAINER="Roberto Metere"
|
||||
EMAIL="roberto@metere.it"
|
20
development/android-studio/slack-desc
Normal file
20
development/android-studio/slack-desc
Normal file
|
@ -0,0 +1,20 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler----------------------------------------------------|
|
||||
android-studio: android-studio (Android Development Tool)
|
||||
android-studio:
|
||||
android-studio: Android Studio is a new Android development environment based on
|
||||
android-studio: IntelliJ IDEA. It provides new features and improvements over
|
||||
android-studio: Eclipse ADT and will be the official Android IDE once it's ready.
|
||||
android-studio:
|
||||
android-studio:
|
||||
android-studio: Homepage: https://developer.android.com/sdk/installing/studio.html
|
||||
android-studio:
|
||||
android-studio:
|
||||
android-studio:
|
||||
android-studio:
|
Loading…
Reference in a new issue