diff options
Diffstat (limited to 'development')
-rw-r--r-- | development/android-studio/README | 24 | ||||
-rw-r--r-- | development/android-studio/android-studio.SlackBuild | 75 | ||||
-rw-r--r-- | development/android-studio/android-studio.desktop | 10 | ||||
-rw-r--r-- | development/android-studio/android-studio.info | 10 | ||||
-rw-r--r-- | development/android-studio/slack-desc | 20 |
5 files changed, 139 insertions, 0 deletions
diff --git a/development/android-studio/README b/development/android-studio/README new file mode 100644 index 0000000000..802eb4f440 --- /dev/null +++ b/development/android-studio/README @@ -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 diff --git a/development/android-studio/android-studio.SlackBuild b/development/android-studio/android-studio.SlackBuild new file mode 100644 index 0000000000..5100ce1e33 --- /dev/null +++ b/development/android-studio/android-studio.SlackBuild @@ -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} diff --git a/development/android-studio/android-studio.desktop b/development/android-studio/android-studio.desktop new file mode 100644 index 0000000000..e207924352 --- /dev/null +++ b/development/android-studio/android-studio.desktop @@ -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 diff --git a/development/android-studio/android-studio.info b/development/android-studio/android-studio.info new file mode 100644 index 0000000000..e67b33e5a9 --- /dev/null +++ b/development/android-studio/android-studio.info @@ -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" diff --git a/development/android-studio/slack-desc b/development/android-studio/slack-desc new file mode 100644 index 0000000000..84827c90af --- /dev/null +++ b/development/android-studio/slack-desc @@ -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: |