summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniele Formichelli2015-06-09 09:17:57 +0200
committerDaniele Formichelli2015-06-09 09:17:57 +0200
commit68f2fbca5ac09bc59888a6081f48d9232907306d (patch)
treee717bd3bca3840769a876244bfea8fe330f53025
downloadaur-68f2fbca5ac09bc59888a6081f48d9232907306d.tar.gz
Initial import
-rw-r--r--.SRCINFO33
-rw-r--r--PKGBUILD56
-rw-r--r--android-studio.desktop12
-rw-r--r--android-studio.install11
4 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ee67a2d925f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+pkgbase = android-studio
+ pkgdesc = A new Android development environment based on IntelliJ IDEA.
+ pkgver = 1.2.1.1
+ pkgrel = 1
+ url = http://developer.android.com/sdk/installing/studio.html
+ install = android-studio.install
+ arch = i686
+ arch = x86_64
+ license = APACHE
+ makedepends = unzip
+ depends = java-environment
+ depends = python
+ depends = ttf-font
+ depends = fontconfig
+ depends = libxrender
+ depends = mesa
+ optdepends = android-google-repository
+ optdepends = android-sdk
+ optdepends = android-sdk-platform-tools
+ optdepends = android-sdk-build-tools
+ optdepends = android-support
+ optdepends = android-support-repository
+ conflicts = android-studio-beta
+ conflicts = android-studio-dev
+ conflicts = android-studio-canary
+ options = !strip
+ source = https://dl.google.com/dl/android/studio/ide-zips/1.2.1.1/android-studio-ide-141.1903250-linux.zip
+ source = android-studio.desktop
+ sha512sums = a0baac0fd7406c16277f09662b798c2340725d0d11333aa1834c095e2041d74bb4e75096dfe146491dfbb330d3a17b5c00e70cc1a921fd230c18d7b3e0d6e9a3
+ sha512sums = fa3567f328af45d265c4fabf3e41b55d8e8cccfa9675e745f07dd6ae41950dd53a2ef41ef1caee86643f5c2ddf7a7681ee17155e208a7b6fdae6c0537dfc0c94
+
+pkgname = android-studio
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..393688aae36
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: danyf90 <daniele.formichelli@gmail.com>
+# Contributor: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu>
+# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
+# Contributor: Christoph Brill <egore911-at-gmail-dot-com>
+# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
+
+pkgname=android-studio
+pkgver=1.2.1.1
+pkgrel=1
+_build=141.1903250
+pkgdesc="A new Android development environment based on IntelliJ IDEA."
+arch=('i686' 'x86_64')
+url="http://developer.android.com/sdk/installing/studio.html"
+license=('APACHE')
+depends=('java-environment' 'python' 'ttf-font')
+makedepends=('unzip')
+optdepends=('android-google-repository' 'android-sdk' 'android-sdk-platform-tools' 'android-sdk-build-tools' 'android-support' 'android-support-repository')
+conflicts=('android-studio-beta' 'android-studio-dev' 'android-studio-canary')
+options=('!strip')
+install=$pkgname.install
+source=("https://dl.google.com/dl/android/studio/ide-zips/$pkgver/android-studio-ide-$_build-linux.zip"
+ "$pkgname.desktop")
+sha512sums=('a0baac0fd7406c16277f09662b798c2340725d0d11333aa1834c095e2041d74bb4e75096dfe146491dfbb330d3a17b5c00e70cc1a921fd230c18d7b3e0d6e9a3'
+ 'fa3567f328af45d265c4fabf3e41b55d8e8cccfa9675e745f07dd6ae41950dd53a2ef41ef1caee86643f5c2ddf7a7681ee17155e208a7b6fdae6c0537dfc0c94')
+
+if [[ $CARCH == "x86_64" ]]; then
+ depends+=('lib32-fontconfig' 'lib32-libxrender' 'lib32-mesa')
+else
+ depends+=('fontconfig' 'libxrender' 'mesa')
+fi
+
+prepare() {
+ cd $srcdir/$pkgname
+
+ # extract the application icon
+ unzip -qo lib/resources.jar artwork/icon_AS_128.png
+
+ # enable anti aliasing
+ echo "-Dswing.aatext=true" >> studio.vmoptions
+ echo "-Dswing.aatext=true" >> studio64.vmoptions
+}
+
+package() {
+ cd $srcdir/$pkgname
+
+ # application stuff
+ install -d $pkgdir/{opt/$pkgname,usr/bin}
+ cp -a bin lib plugins $pkgdir/opt/$pkgname
+ ln -s /opt/android-studio/bin/studio.sh $pkgdir/usr/bin/android-studio
+
+ # starter stuff
+ install -Dm644 artwork/icon_AS_128.png $pkgdir/usr/share/pixmaps/$pkgname.png
+ install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
+
+ chmod -R ugo+rX $pkgdir/opt
+}
diff --git a/android-studio.desktop b/android-studio.desktop
new file mode 100644
index 00000000000..394b1e93bc9
--- /dev/null
+++ b/android-studio.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Android Studio
+Exec=android-studio %f
+Icon=android-studio
+Comment=Develop with pleasure!
+Categories=Development;IDE;
+Terminal=false
+StartupNotify=true
+StartupWMClass=jetbrains-android-studio
+MimeType=application/x-extension-iml;
diff --git a/android-studio.install b/android-studio.install
new file mode 100644
index 00000000000..80312d4a604
--- /dev/null
+++ b/android-studio.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ update-desktop-database -q
+}